tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Preprocessor performance tuning


From: Vladimir Vissoultchev
Subject: [Tinycc-devel] Preprocessor performance tuning
Date: Fri, 15 Apr 2016 17:26:33 +0300

Had some time to tweak preprocessor performance and here is a proposed patch
that includes:

- better `TOK_HASH_FUNC`
- increases `hash_ident` initial size to 16k (from 8k)
- `cstr_realloc` initial string size to 16 (from 8)
- `cstr_cat` uses single realloc + memcpy
- `cstr_cat` can append terminating zero
- `tok_str_realloc` initial size to 16 (from 8)
- `parse_define` uses static `tokstr_buf`
- `next` uses static `tokstr_buf`

@seyko: Can you please test it with tccboot. I get a 7-8% better overall tcc
performance with the patch applied.

cheers,
</wqw>

Attachment: 0001-Improve-hash-performance-and-reduce-allocations.zip
Description: Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]