Skip to main content

Bug Tracker

Side navigation

#5898 closed enhancement (wontfix)

Opened January 22, 2010 01:00PM UTC

Closed February 07, 2011 04:58PM UTC

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.

Attachments (0)
Change History (3)

Changed November 19, 2010 05:18AM UTC by snover comment:1

milestone: 1.4.1
priority: minorlow
status: newopen
version: 1.41.4.4

Changed November 21, 2010 09:54PM UTC by snover comment:2

owner: johnsnover
status: openassigned

Changed February 07, 2011 04:58PM UTC by snover comment:3

resolution: → wontfix
status: assignedclosed

PR was closed.