#431 enhancement
MIYAMUKO Katsuyuki

String#extractScripts, stripScripts performance optimization

Reported by MIYAMUKO Katsuyuki | November 7th, 2008 @ 03:07 PM | in 1.7

new RegExp is heavy operation in Firefox.

An attached patch is a to avoid recompiling the regexp in each method call.

Performance

1000 iteration of String#extractScripts.

  • IE7
    • 0.453 => 0.172
  • Firefox3
    • 2.012 => 0.046
  • Chrome
    • 0.075 => 0.029
  • Safari3
    • 0.063 => 0.016
  • Opera9
    • 0.250 => 0.125

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

Pages