Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Strawberry: Both IO and global match are VERY SLOW. Unless pre-heated (but why?)

by Discipulus (Canon)
on Nov 21, 2023 at 12:39 UTC ( [id://11155738] : note . print w/replies, xml ) Need Help??


in reply to Strawberry: Both IO and global match are VERY SLOW. Unless pre-heated (but why?)

Hello,

not being able to dig it up further I've submitted an issue to perl5 and I'll update the thread if something goes on.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
  • Comment on Re: Strawberry: Both IO and global match are VERY SLOW. Unless pre-heated (but why?)
  • Download Code

Replies are listed 'Best First'.
Re^2: Strawberry: Both IO and global match are VERY SLOW. Unless pre-heated (but why?) -- fixed
by Discipulus (Canon) on Dec 05, 2023 at 09:35 UTC
    Hello there,

    glad to update on this issue: a recent commit in blead fixed the issue spotted by Anonymous Monk.

    This the comment:

    grow the tmps (mortal) stack exponentially rather than linearly As with the value stack and the save stack, this gives us constant amortized growth per element.

    Thanks to you all and especially to Tony Cook!

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.