#689 ✓fixed_in_master_branch
Samuel Lebeau

Use String#replace instead of String#gsub internally

Reported by Samuel Lebeau | May 26th, 2009 @ 10:58 PM | in 1.6.1

The attached patch replaces all calls to sub or gsub methods by calls to String.prototype.replace throughout the framework, hence giving a performance boost.

As it relies on normal behavior of String.prototype.replace with a function as replacement, this patch depends on the one I attached to my comment (Safari < 2.0.4 issue only).

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