Remove the need to heap allocate a string for each style option lookup while reading or writing options.p
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Was this caused by a performance concern when profiling something? I'm not opposed to the changes, but I do think the original formulation is easier to read.
Comment Actions
It's not a huge performance concern, but removing up to 156 malloc calls* for each time we read** or store the style is certainly reason for this.
*Depends on standard library implementations small string optimisation buffer size.
**Happens multiple times as of 4888c9ce.