You know the first three rules of optimisation, right? They are, in order:
1. Measure 2. Measure 3. Measure
Also: 1. Don't. 2. Don't... yet. 3. Profile before optimizing
anyway, usage of lua_pushlstring instead of lua_pushstring is much better.
-- Yours sincerely, Eugeny. +33 6 38 52 27 93
|