Skip to content
  • Mike Bostock's avatar
    Avoid linear scan when adding new timer. · 443f0e64
    Mike Bostock authored
    Timer callbacks are now assigned a unique id, such that if an existing callback
    is later replaced, the timing parameters can be updated using a constant-time
    lookup rather than a linear scan of the timer queue.
    443f0e64