lua-users home
lua-l archive

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


2010/10/16 Alex de Magalhães Machado <alex@lisha.ufsc.br>:
> But why do tables vary in timing?

tables resize automatically when needed. for that it might need to
copy existing data, which can take some miliseconds for big tables or
slow CPUs.  it's hard to predict when resizing would be needed.

AFIK, ecos can be configured from a no-kernel very static event loop,
all the way to a fully POSIX unix-like system; i guess that means you
could set some tasks a low priority (so that they don't affect RT-ness
of the whole system), and only enter higher priority on tight loops
that could be carefully coded to avoid resizing and garbage collection

-- 
Javier