[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: precompiled regex's to lua
- From: roberto@... (Roberto Ierusalimschy)
- Date: Fri, 10 Nov 2006 08:16:14 -0200
> 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