summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>2010-10-15 14:48:38 -0700
committerJan Dubois <jand@activestate.com>2010-10-15 14:48:38 -0700
commitad6ab6c50584b455ffb6a48d18fb6409bea8a3c1 (patch)
tree65b1d536b9afb812b16e575d3a3754433ebb3bd8 /dist
parent5f286eeea1a6d97101ebc9f6d579ca42c99e6711 (diff)
downloadperl-ad6ab6c50584b455ffb6a48d18fb6409bea8a3c1.tar.gz
Use __declspec(dllimport) for XS code on Windows
By default C compilers will generate direct call instructions that the linker will have to route trhough a call thunk if the call site is not available at link time. By annotating all imported symbols the compiler is able to generate a indirect call instruction directly. This should improve performance minimally, but will also make sure the Perl API functions have the same addresses inside the core and inside XS modules. The ext/XS-APItest/t/call_checker.t tests rely on being able to compare function addresses.
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions