In perl.git, the branch toddr/hek_flags has been created

<http://perl5.git.perl.org/perl.git/commitdiff/82309362a56bd9b3ed4e112170598ff1d7591ec0?hp=0000000000000000000000000000000000000000>

        at  82309362a56bd9b3ed4e112170598ff1d7591ec0 (commit)

- Log -----------------------------------------------------------------
commit 82309362a56bd9b3ed4e112170598ff1d7591ec0
Author: Todd Rinaldo <[email protected]>
Date:   Thu Oct 13 22:38:31 2016 -0500

    hv.h: rework HEK_FLAGS to a proper member in struct hek
    
    Move the store of HEK_FLAGS off the end of the allocated
    hek_key into the hek struct, simplifying access and providing
    clarity to the code.
    
    What is not clear is why Nicholas or perhaps Jarkko did
    not do this themselves. We use similar tricks elsewhere,
    so perhaps it was just continuing a tradition...
    
    One thought is that we often have do strcmp/memeq on these
    strings, and having their start be aligned might improve
    performance, wheras this patch changes them to be unaligned.
    If so perhaps we should just make flags a U32 and let the
    HEK's be larger. They are shared in PL_strtab, and are
    probably often sitting in malloc blocks that are sufficiently
    large enough that making them bigger would make no practical
    difference. (All of this is worth checking.)
    
    [with edits by Yves Orton]
-----------------------------------------------------------------------

--
Perl5 Master Repository

Reply via email to