[cfe-commits] [PATCH] -finput-charset, multi-byte character and BOM support

Scott Conger scott.conger at gmail.com
Sun Jul 17 10:44:57 PDT 2011


Yes, that's 1000 calls, not 1 call. Hack 3 zeros off.

On Sun, Jul 17, 2011 at 5:27 AM, Jonathan Sauer <jonathan.sauer at gmx.de> wrote:
> Hello,
>
>>> At a minimum, we have to scan through the input text to see if there
>>> are any multi-byte characters. There are usually none as portable code
>>> won't have any. The cost of this is lower if you have SSE2 support as
>>> I added an optimized version using intrinsics:
>>>
>>> For 1000 calls against a 16 MB ASCII buffer, on an AMD Athlon 7850
>>> (2.81 Ghz) rough costs with GCC were:
>>> Default checkAscii - 13050 ms
>>> SSE2 checkAscii - 4025 ms
>> Whoa ... isn't the total preprocessed size of Cacao.h somewhere around
>> 2-4 MB? That's up to a second delay per compilation.
>
> If I understand correctly, the above timings are for processing *1000* files. So
> compiling Cocoa.h would only result in a delay of one millisecond (and even less
> if SSE2 is available).
>
>
> Jonathan
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>



More information about the cfe-commits mailing list