lua-users home
lua-l archive

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


>In order to be "as light as possible", I would like to launch only 1
>process to monitor everything

The rational process is to develop your app first, keeping it modular so you can re-arch it without too much pain, and only then profile its performance -- for specific use-cases/configurations because you can't profile a wildcard.

You can avoid obvious pitfalls during development but obsessing about one function or another is counter-productive. It may or may not be relevant, or only under certain circumstances which you may give more or less importance to, but you'll notice obvious resource-hogs which you can address once you know if they're due to process proliferation, memory usage, disk i/o, CPU and/or whatever else.

>Among interpreted languages I know, Lua is clearly the more resource
>conservative.

It is, but won't prevent a user from putting a foot in the mouth :)

Take a look at Conky for a Lua-extensible system monitor, putting aside display functionality.

cheers,

-- p