ClojureScript

Add an IAtom protocol

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code

Description

Add an IAtom protocol with a -reset! method and a fast path for Atom in cljs.core/reset!.

See jsperf here - http://jsperf.com/iatom-adv

Latest chrome and firefox versions suffer ~20-30% slowdown. Older firefox versions suffer up to 60-70%.

  1. CLJS-760.patch
    03/Feb/14 6:15 PM
    2 kB
    Jamie Brandon
  2. CLJS-760.patch
    02/Feb/14 11:51 AM
    2 kB
    Jamie Brandon
  3. patch
    01/Feb/14 10:18 PM
    1 kB
    Jamie Brandon

Activity

Jamie Brandon made changes -
Field Original Value New Value
Attachment CLJS-760.patch [ 12743 ]
David Nolen made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]
David Nolen made changes -
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Completed [ 1 ]
Jamie Brandon made changes -
Attachment CLJS-760.patch [ 12747 ]
David Nolen made changes -
Resolution Completed [ 1 ]
Status Reopened [ 4 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: