[cfe-commits] [PATCH] share code between StringRef and ArrayRef
jay.foad at gmail.com
Fri Apr 15 02:58:00 PDT 2011
On 14 April 2011 13:35, Benjamin Kramer <benny.kra at googlemail.com> wrote:
> Have you checked the compile time impact of this? StringRef.h is included everywhere and ArrayRef.h pulls in Smallvector and Vector which are both big headers. I don't think this is worth it.
In lib/Support/ there 68 source files, of which 38 (directly or
indirectly) include StringRef.h, of which only 1 also includes
Here is the time it took to do 5 runs of "make -j2" in that directory
on my Ubuntu 10.10 system, before my changes:
and after my changes:
I'll drop the patch!
More information about the cfe-commits