Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Could Luas memory management clash with the hosts requirements?

0
Posted

Could Luas memory management clash with the hosts requirements?

0

Lua uses its own automatic memory management which operates in a memory space of a fixed size determined by the host program. This means that no system calls will be needed to allocate memory during script execution. An interpreter can therefore be used in situations where such calls are unsafe. However, automatic memory management can create problems in itself. Some garbage collection systems suffer from “pregnant pauses” where the main program freezes during collection cycles. Lua’s incremental collection has the same time overheads as other techniques, but it spreads them evenly in small steps over the program’s execution. Latency in such a system is very consistent, possibly even more so than in systems that use manual memory management. Furthermore, the time between collection steps and the time spent on each step can be controlled by the host on the fly. An embedded Lua can therefore be configured and tested for a specific latency requirement quite easily and should pass or fail

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123