Skip to main content

Bug Tracker

Side navigation

#6114 closed enhancement (duplicate)

Opened February 18, 2010 09:25AM UTC

Closed October 16, 2010 05:58AM UTC

Last modified October 16, 2010 05:58AM UTC

fcleanup function perfomance speed up

Reported by: vamp Owned by:
Priority: undecided Milestone: 1.4.2
Component: event Version: 1.4.1
Keywords: fcleanup Cc: vamphouse@yandex.ru
Blocked by: Blocking:
Description

return nm.replace(/[^\\w\\s\\.\\|`]/g, function( ch ) {

return "\\\\" + ch;

});

vs

nm.replace(/(?=[^\\w\\s\\.\\|`])/g, '\\\\');

Attachments (0)
Change History (4)

Changed February 18, 2010 09:36AM UTC by vamp comment:1

excuse me, "^" character was dropped from initial RegExp:

http://gyazo.com/cf062387ab1881de8771199fd5257e2f.png

Changed September 23, 2010 09:35PM UTC by ridgerunner comment:2

A fix very similar to this one was recently implemented (See #7062). However, the fix recommended here might be even faster. Only benchmarking can tell...

Changed October 16, 2010 05:58AM UTC by snover comment:3

priority: → undecided
resolution: → duplicate
status: newclosed

Changed October 16, 2010 05:58AM UTC by snover comment:4

Duplicate of #7062.