aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land.
In D90244#2357510 <https://reviews.llvm.org/D90244#2357510>, @njames93 wrote: > In D90244#2357130 <https://reviews.llvm.org/D90244#2357130>, @aaron.ballman > wrote: > >> 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. > > 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 > <https://reviews.llvm.org/rG4888c9ce97d8c20d988212b10f1045e3c4022b8e>. Okay, that's sufficiently motivating to me. Thank you, LGTM! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90244/new/ https://reviews.llvm.org/D90244 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits