lua-users home
lua-l archive

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


> I'm writing an C++ IRC client which uses Lua for user scripts, and thinking
> about using Lua for message parsing - I've mocked up a parser and it makes
> the code very easy to deal with. Now, I'm aware that premature optimization
> is bad, and that IRC operations are essentially user-input bound, which is
> slow - but can anyone see any performance pitfalls with having possibly 3 to
> 6 C-to-Lua calls per message received?

Hello Evan,

In brief: don't worry.

In more words: we are using heavily Lua in games. We do C-to-Lua calls
on each frame to render our UI (which is almost entirely in Lua), and
on each user input message (mouse move, key press, controller action
etc.).