[cfe-dev] clang performance when building Linux

Konstantin Tokarev annulen at yandex.ru
Tue Apr 19 00:48:22 PDT 2011


19.04.2011, 05:34, "Chandler Carruth" <chandlerc at google.com>;:

>  I got CityHash into the codebase and taught StringMap to use it. This saved roughly 50% of the time in the function, taking it under the 1% line. I haven't looked in detail to see what is taking the time now.
>
>  On another benchmark where this function was a bit hotter (2.4% roughly, similar numbers to those I got by profiling the kernel build) I saw as much as 1% over-all speed up. Nothing stellar, but not terrible either.
>
>  If folks are interested, I'll look at getting City Hash checked in, and investigate using it in a few other places as well where collisions and/or hashing cost us some.

CityHash is optimized for x86_64. Won't it lead to performance degradation on 32 bit machines?

Also, there is a warning inside CityHash sources:

"WARNING: This code has not been tested on big-endian platforms!"

-- 
Regards,
Konstantin



More information about the cfe-dev mailing list