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

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: