Overview
| Artifact ID: | 32268b83253802c6c947d60cc4f2b5ab0c2761b2 |
|---|---|
| Ticket: | 3064962fffffffffffffffffffffffffffffffff
Suboptimal linkage of stubbed functions |
| User & Date: | ferrieux on 2010-09-12 23:06:56 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed to:
When looking in detail at the native code generated by gcc on x86, one sees that stubbed functions, that get the EXTERN class (extern + attribute(visibility=default)), are _always_ called through the PLT (program linkage table), doing an unwanted indirection with possible strong cache misses. I don't know why it is so, because the build system uses -fvisibility=hidden, so that all those symbols should stay hidden and avoid the PLT. But the net result is a very measurable performance hit, as illustrated by in the tclcore discussion http://code.activestate.com/lists/tcl-core/9531/
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "9 Immediate"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "ferrieux"
- subsystem changed to: "53. Configuration and Build Tools"
- title changed to: "Suboptimal linkage of stubbed functions"
- type changed to: "Bug"