Bug Tracker

Opened 10 years ago

Closed 9 years ago

#5898 closed enhancement (wontfix)

Performance Improvement for :odd/:even

Reported by: LX Owned by: snover
Priority: low Milestone:
Component: selector Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

Description

I benchmarked the modulo operator against the binary operations: binary operations are 3 - 10 times faster, depending on the browser. So instead of "return i % 2 === 0;" and "return i % 2 === 1;", one could use "return i & 1 === 1" and "return i & 1 === 0;" with more speed.

Change History (3)

comment:1 Changed 10 years ago by snover

Milestone: 1.4.1
Priority: minorlow
Status: newopen
Version: 1.41.4.4

comment:2 Changed 10 years ago by snover

Owner: changed from john to snover
Status: openassigned

comment:3 Changed 9 years ago by snover

Resolution: wontfix
Status: assignedclosed

PR was closed.

Note: See TracTickets for help on using tickets.