lua-users home
lua-l archive

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


> The actual issue is CSV parsing (comma separated values). 
> Just simple, "%d+,%d+,[^,]," kind.  Ideas for a better 
> approach in Lua then string.match?

Even with string.match there are several alternatives. Because Lua does
not precompile the patterns, small differences among them may change
the performance. You could try other patterns for your problem to
check whether you can gain some speed. (Probably results will not
extend to different platforms...) For instance, you can try ".-," or
"%d%d*,".

-- Roberto