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 comment:1
Changed September 23, 2010 09:35PM UTC by 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 comment:3
priority: | → undecided |
---|---|
resolution: | → duplicate |
status: | new → closed |
excuse me, "^" character was dropped from initial RegExp:
http://gyazo.com/cf062387ab1881de8771199fd5257e2f.png