[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>
0001-Improve-hash-performance-and-reduce-allocations.zip
Description: Zip compressed data
- [Tinycc-devel] Preprocessor performance tuning,
Vladimir Vissoultchev <=
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/15
- Re: [Tinycc-devel] Preprocessor performance tuning, Christian Jullien, 2016/04/15
- Re: [Tinycc-devel] Preprocessor performance tuning, Michael Matz, 2016/04/17
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/19
- Re: [Tinycc-devel] Preprocessor performance tuning, Christian Jullien, 2016/04/19
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/19
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/19
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/19
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/19
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/19