[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Preprocessor performance tuning
From: |
Vladimir Vissoultchev |
Subject: |
Re: [Tinycc-devel] Preprocessor performance tuning |
Date: |
Sat, 16 Apr 2016 01:04:29 +0300 |
Ok, here is a new version of the patch that uses custom allocators for small
instances of `TokenSym`, `CString` and `TokenString`. I'm getting at least
15% boost here (45MB/s -> 55MB/s) as the `malloc`/`free` calls get down to
less that 1% of overall exec time in the profiler.
This approach is preallocating at least 3MB of RAM for tiny instances,
configurable through the new TOKSYM_TAL_SIZE, CSTR_TAL_SIZE and
TOKSTR_TAL_SIZE in tcc.h along with the limit on instance sizes the
allocators consider. With current settings I'm geting on all allocators no
more that 70% buffer usage on (5 times) nginx sources compilation.
cheers,
</wqw>
-----Original Message-----
From: Tinycc-devel [mailto:address@hidden
On Behalf Of Sergey Korshunoff
Sent: Friday, April 15, 2016 6:11 PM
To: address@hidden
Subject: Re: [Tinycc-devel] Preprocessor performance tuning
> @seyko: Can you please test it with tccboot. I get a 7-8% better
> overall tcc performance with the patch applied.
Yes, this version is faster. But on tccboot there is only a 4% speedup:
from 24.5 MiB/s to 25.5 MiB/s
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
- Re: [Tinycc-devel] Preprocessor performance tuning, (continued)
- 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
- Re: [Tinycc-devel] Preprocessor performance tuning, Vladimir Vissoultchev, 2016/04/19
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/22
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/22
- Re: [Tinycc-devel] Preprocessor performance tuning, Vladimir Vissoultchev, 2016/04/19
Re: [Tinycc-devel] Preprocessor performance tuning,
Vladimir Vissoultchev <=
Re: [Tinycc-devel] Preprocessor performance tuning, Vladimir Vissoultchev, 2016/04/15
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/15
- Re: [Tinycc-devel] Preprocessor performance tuning, Vladimir Vissoultchev, 2016/04/16
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/16
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/16
- Re: [Tinycc-devel] Preprocessor performance tuning, Vladimir Vissoultchev, 2016/04/16
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/16
- Re: [Tinycc-devel] Preprocessor performance tuning, Vladimir Vissoultchev, 2016/04/16
- Re: [Tinycc-devel] Preprocessor performance tuning, Sergey Korshunoff, 2016/04/17
- Re: [Tinycc-devel] Preprocessor performance tuning, Vladimir Vissoultchev, 2016/04/17