Skip to content

Conversation

@rjbs
Copy link
Owner

@rjbs rjbs commented May 9, 2020

Why is stupid-big so slow?

I didn't like the splitting with /...\s*$/m but using a tighter /\h*\v/ didn't help.

Trying a similarly large string in split didn't seem to indicate it was size alone.

The "did" file included is:

use v5.20.0;
use Time::HiRes;
package main {
  state $time;
  sub did {
    if (! defined $time) { warn "TIMER: initialized\n"; $time = Time::HiRes::time; return }
    my $now = Time::HiRes::time;
    warn sprintf "TIMER: % 8.4fs - %s\n", $now - $time, $_[0] if defined $_[0];
    $time = $now;
    return;
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants