Re: [Mingw-w64-public] printf speedup [PATCH]

2015-03-31 Thread Dongsheng Song
Hi Mattias, Could you share your micro benchmark data ? In my testing, getenv() is very fast. *) unset PRINTF_EXPONENT_DIGITS preheat 1 times, then perform 100 times (use 4.6 seconds) getenv cost: 4.6 us *) set PRINTF_EXPONENT_DIGITS=3 preheat 1 times, then perform 100

Re: [Mingw-w64-public] printf speedup [PATCH]

2015-03-31 Thread Dongsheng Song
Cache getenv() looks a good idea ! Patch is OK for me. On Wed, Apr 1, 2015 at 4:16 AM, Mattias Engdegård wrote: > The functions in the __mingw_printf family are very slow because of the > getenv(”PRINTF_EXPONENT_DIGITS”) call that is made every time, even when > that information isn’t actually n

[Mingw-w64-public] printf speedup [PATCH]

2015-03-31 Thread Mattias Engdegård
The functions in the __mingw_printf family are very slow because of the getenv(”PRINTF_EXPONENT_DIGITS”) call that is made every time, even when that information isn’t actually needed. Please consider this patch. It only calls getenv once, caching the result (as is traditionally done in librari

[Mingw-w64-public] static libgcc in multiple shared libraries

2015-03-31 Thread Cosmin Apreutesei
Hi, I'm looking for the best way to distribute binaries for a main exe and several C and C++ plugins separately and I have a few questions about linking libgcc and libstdc++. Currently, the main exe (a C program) is linked with static-libgcc. Several C libraries that are loaded via LoadLibrary()

Re: [Mingw-w64-public] [ANN] Website changes

2015-03-31 Thread Adrien Nader
On Tue, Mar 31, 2015, Stephen Kitt wrote: > > On a related note, I'll try to spend time next week-end to improve the > > layout of the tables a bit as they'd probably benefit from cell borders > > (I find them a bit difficult to read at times with their current style). > > That would improve the r