[line-map] simple oneliner that speeds up track-macro-expansion
Dimitrios Apostolou
jimis@gmx.net
Mon Jun 4 05:09:00 GMT 2012
Hello list,
the attached simple patch is a small part of the fix in Bug #53525, but it
is independant and offers a noticeable performance improvement for
track-macro-expansion. No regressions tested on x86, besides memory usage
going up some KB.
I don't get why the max_column_hint was zeroed in every macro. Maybe there
are pathological cases that I don't see?
2012-06-04 Dimitrios Apostolou <jimis@gmx.net>
* line-map.c (linemap_enter_macro): Don't zero max_column_hint in
every macro. This improves performance by reducing the number of
reallocations when track-macro-expansion is on.
Thanks
Dimitris
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: macro1.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120604/6fe211da/attachment.ksh>
More information about the Gcc-patches
mailing list