Front page | perl.perl5.porters |
Postings from March 2013
Re: File::Spec in XS
Thread Previous
|
Thread Next
From:
Zefram
Date:
March 7, 2013 10:12
Subject:
Re: File::Spec in XS
Message ID:
20130307101229.GB984@lake.fysh.org
bulk88 wrote:
>considered adding a newSVpvs_share("File::Spec::Unix") to MY_CXT,
>then comparing SvPVXes of SV* invocant and against the shared SV key
>name before doing the memcmp? It might prevent a memcmp.
memcmp isn't that expensive. gcc inlines it. (It comes out as a "repz
cmpsb" on x86_64, rather than the two wordwise comparisons that I'd
expected for this constant-length case. Current CPUs have some nifty
logic to perform string ops in larger chunks, though.)
-zefram
Thread Previous
|
Thread Next