lua-users home
lua-l archive

Re: VS2005 Building Against Old Runtime

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


2008年9月9日 Ignacio Burgueño <ignaciob@inconcertcc.com>:
> Jerome Vuarand wrote:
>> IIRC someone mentionned on this list that msvcrt.dll is a poor
>> alternative for a newer MSVC runtime because it has a very slow malloc
>> implementation. Did you perform some Lua benchmark with this new build
>> method ?
>
> I think you're refering to this post:
> http://article.gmane.org/gmane.comp.lang.lua.general/47305/match=runtime+malloc
>
> It says it is the other way around. MSVCRT has some internal pool for small
> allocations whereas newer runtimes just call HeapAlloc blindly.
It looks like that's the one I remembered. Thanks for refreshing my
memory. Indeed it seems that using msvcrt.dll on windows Lua builds
(whatever the C compiler) is a good idea.

AltStyle によって変換されたページ (->オリジナル) /