This change reduces the size of each Option by only storing category
info that's actually used in the global parser. Saves 24 bytes per
Option.
Details
Details
- Reviewers
beanz MaskRay serge-sans-paille zturner pete
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 42425 Build 42905: arc lint + arc unit
Event Timeline
Comment Actions
I recall that you have a patch that touched this area, which was committed and reverted for several times. Is this patch a similar one? Can you find pointers to the old one?
Have you tried TinyPtrVector?
Comment Actions
Yes, the previous patch, D62105, attempted to move both SubCommands and Categories at the same time, but was overly complicated. I finally abandoned it after I was unable to reproduce a buildbot failure. This patch is similar, but only moves Categories and is much simpler.
Have you tried TinyPtrVector?
No, but I'll take a look tonight -- probably a better option than SmallPtrSet, especially since it's per Option, and we don't need to worry about dups in that context.