Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2483 closed enhancement (fixed)

Speed optimization for dojo.date.compare()

Reported by: james@… Owned by: Adam Peller
Priority: low Milestone: 0.9
Component: Date Version: 0.4.1
Keywords: Cc: mde@…
Blocked By: Blocking:

Description

Here is a patch that makes dojo.date.compare() more readable and run about twice as fast (as measured with Firefox 2 + Firebug under Mac OS X 10.4.8).

Attachments (1)

compare.patch (1.9 KB) - added by james@… 12 years ago.
Speed optimization for dojo.date.comapre().

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by james@…

Attachment: compare.patch added

Speed optimization for dojo.date.comapre().

comment:1 Changed 12 years ago by Adam Peller

Cc: mde@… added
Milestone: 0.9
Owner: changed from psowden to Adam Peller

comment:2 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [7433]) apply optimization for dojo.date.compare() (thanks James Overton). Style fixes. Fixes #2483

comment:3 Changed 12 years ago by Adam Peller

(In [7434]) Make incr arg mandatory on add(). References #2483

Note: See TracTickets for help on using tickets.