lua-users home
lua-l archive

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

Mike Pall wrote:
Hans Hagen wrote:
cc = [...]

Do you know about the keyword "local"?


If not, then do NOT post Lua benchmarks. Ever.

does not make much difference in the relative speed here; the lpeg one seems slightly faster (which does not surprise me that much)

(and i've done quite some benchmarking, on large data sets as well as on rather complex lua code; not that it matters; this is not production code but just a quick comparison between gmatch and lpeg)

                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 |