in reply to Re: Hash versus chain of elsifs
in thread Hash versus chain of elsifs
In any case, if you're looking for fixed strings rather than regex patterns, substring matches, etc., I would still expect hashes to be faster, but something based on Regexp::Assemble or a similar technique could be close enough to warrant a benchmark. And you might still want to go that route even if it's a little slower in order to gain the extra flexibility in how you match.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Hash versus chain of elsifs
by LanX (Saint) on Nov 23, 2021 at 11:42 UTC |