in reply to Need to speed up many regex substitutions and somehow make them a here-doc list

60-70% slower than bash

That sounds sub-optimal. Please show: your bash script, your Perl script and a representative set of data (does not have to be large). Without all three, anything else would be guess work.


🦛

  • Comment on Re: Need to speed up many regex substitutions and somehow make them a here-doc list

Replies are listed 'Best First'.
Re^2: Need to speed up many regex substitutions and somehow make them a here-doc list
by xnous (Sexton) on Oct 02, 2022 at 12:52 UTC
    (Deleted, replied to wrong level)

      Regardless of the performance problems, you may be interested in using a proper stemmer to create a search index. See Lingua::Stem.