in reply to RE on lines read from in-memory scalar is very slow
Just a summary, this hasn't been fixed yet.
There's three things contributing to this problem:
my @save; while (<$fh>) { /successful (match with captures)/; # mark the SV as CoW push @save, $_; # extend the lifetime of the SV's PV until removed +from @save }
the memory use of the program explodes (my machine with 32G ran out of memory testing this).
I have a WIP fix for 2, but it unfortunately leaks in ASAN tests, so I haven't made a PR for it (it does prevent the performance problem)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RE on lines read from in-memory scalar is very slow
by NERDVANA (Priest) on Feb 20, 2024 at 05:57 UTC | |
by tonyc (Hermit) on Feb 20, 2024 at 22:57 UTC | |
by NERDVANA (Priest) on Feb 20, 2024 at 23:43 UTC | |
by tonyc (Hermit) on Feb 21, 2024 at 00:01 UTC | |
by NERDVANA (Priest) on Feb 21, 2024 at 00:10 UTC | |
by Danny (Chaplain) on Feb 20, 2024 at 10:30 UTC | |
by NERDVANA (Priest) on Feb 20, 2024 at 22:03 UTC |