Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 32268b83253802c6c947d60cc4f2b5ab0c2761b2
Ticket: 3064962fffffffffffffffffffffffffffffffff
Suboptimal linkage of stubbed functions
User & Date: ferrieux on 2010-09-12 23:06:56
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. 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/
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "9 Immediate"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "ferrieux"
  10. subsystem changed to: "53. Configuration and Build Tools"
  11. title changed to: "Suboptimal linkage of stubbed functions"
  12. type changed to: "Bug"