Bad uses of patterns (was: Re: Feature request: names for constants)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Bad uses of patterns (was: Re: Feature request: names for constants)
- From: "Soni L." <fakedme@...>
- Date: 2015年9月24日 13:45:09 -0300
On 24/09/15 12:39 PM, Dirk Laurie wrote:
Consider the following code:
local trim_pattern = "^%s*(.*%S)%s*$"
Wouldn't it be faster if you trimmed at start, reversed, then trimmed at
start again? (or maybe at start, then at end?)
--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.