• Kevin Modzelewski's avatar
    Reduce allocations in stackmap parsing · 896bc696
    Kevin Modzelewski authored
    Maybe a better overall approach is to not convert it out of its
    original flat format; we keep that original memory around anyway
    and I don't think it's that much faster to scan than our parsed
    version.
    
    But for now, optimize the current approach:
    - convert vector->SmallVector
    - call ensure since we usually know how many elements the vectors will have
    - use a StringMap instead of an unordered_map<std::string>
    896bc696
patchpoints.h 5.45 KB