[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.4.2 (realloc ?)
- From: Francisco Olarte <folarte@...>
- Date: Mon, 9 Nov 2020 17:03:45 +0100
Rainier:
On Mon, Nov 9, 2020 at 2:55 PM Ranier Vilela <ranier.vf@gmail.com> wrote:
> I'm surprised that a simple test with very little used memory,
> Lua is already calling realloc!
Why ( are you surprised ) ? ( It may be, and given what I have read in
the manual I suspect is) using realloc for all memory allocations.
AAMOF a quick grep in the sources show no malloc usages and just a
single realloc and free ones ( you can do everything with realloc ).
Francisco Olarte.