It looks like DBIx::Class was re-creating objects every time.
Oh, I missed that part. There's a much easier for that - move the retrieval of the DBIx::Class objects out of the loop:
my @watchstrings = $schema->resultset('WatchString')->all while( my $line <INPUT> ) { for my $w (@watchstrings) { ... } }
In reply to Re^3: How to cache a regular expression in a DBIx::Class object
by moritz
in thread How to cache a regular expression in a DBIx::Class object
by chrestomanci
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |