lua-users home
lua-l archive

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


> One thing about this particular test that might make it somewhat
> unusual:  it allocates _very_ large strings (like 500MB), parses their
> contents, and then drops all references to them.  Lua 5.1.4 very
> quickly reclaims a huge amount of memory after these big strings
> become unreferenced; printing out memory usage (using
> collectgarbage"count") at various points shows many places where usage
> in 5.1.4 drops from like "700MB used" to "2MB used", whereas the same
> printouts in Lua 5.2 never shows any obvious large drops in usage.
> 
> Could this extreme "chunkiness" of allocation have some adverse impact
> on 5.2 that it didn't on 5.1.4?

Can you send the code?

-- Roberto