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 comment:1
milestone: | 1.4.1 |
---|---|
priority: | minor → low |
status: | new → open |
version: | 1.4 → 1.4.4 |
Changed November 21, 2010 09:54PM UTC by comment:2
owner: | john → snover |
---|---|
status: | open → assigned |
Changed February 07, 2011 04:58PM UTC by comment:3
resolution: | → wontfix |
---|---|
status: | assigned → closed |
PR was closed.
pull request and jsPerf test case.