Opened 3 years ago

Last modified 18 months ago

#18884 new task

array.filter + scoping => performance problem in Firefox

Reported by: roman.bazelides Owned by:
Priority: undecided Milestone: 1.14
Component: Core Version: 1.11.2
Keywords: Cc:
Blocked By: Blocking:

Description

Both array.filter and array.forEach allow for scope change.

array.filter(items, function(item) { ... }, this);
array.forEach(items, function(item) { ... }, this);

Whereas array.forEach scope change does not have any significant impact on performance, scope change in array.filter causes filtering operation to take twice as much time in Firefox as filtering without the scope change.

For more details run following jsFiddle in Firefox.

Change History (2)

comment:1 Changed 2 years ago by dylan

Milestone: tbd1.13

comment:2 Changed 18 months ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.