1. Aug 05, 2014
    • Julien Gilli's avatar
      timers: fix timers with non-integer delay hanging. · 6f043940
      Julien Gilli authored
      When backporting f8193ab3 into v0.10, a regression was introduced. Timers
      with non-integer timeout could trigger a infinite recursion with 100%
      cpu usage. This commit backports 93b06246 which fixes the regression.
      
      After backporting f8193ab3, instead of using Date.now(), timers would use
      Timer.now() to determine if they had expired. However, Timer.now() is
      based on loop->time, which is not updated when a timer's remaining time
      is > 0 and < 1. Timers would thus never timeout if their remaining time
      was at some point > 0 and < 1.
      
      With this commit, Timer.now() updates loop->time itself, and timers
      always timeout eventually.
      
      Fixes #8065 and #8068.
      6f043940
  2. Aug 02, 2014
  3. Aug 01, 2014
  4. Jul 31, 2014
  5. Jul 29, 2014
  6. Jul 24, 2014
  7. Jul 23, 2014
  8. Jul 18, 2014
  9. Jul 17, 2014
  10. Jul 15, 2014
  11. Jul 12, 2014
  12. Jul 10, 2014
    • cjihrig's avatar
      lib: remove and restructure calls to isNaN() · b87ca794
      cjihrig authored
      
      
      Switch condition order to check for null before calling isNaN().
      Also remove two unnecessary calls to isNaN() that are already
      covered by calls to isFinite(). This commit targets v0.10, as
      opposed to #7891, which targets master (suggested by
      @bnoordhuis). Closes #7840.
      
      Signed-off-by: default avatarFedor Indutny <fedor@indutny.com>
      b87ca794
  13. Jul 07, 2014
  14. Jul 03, 2014
  15. Jun 30, 2014
  16. Jun 27, 2014
  17. Jun 24, 2014
    • Nick Apperson's avatar
      buffer: improve {read,write}{U}Int* methods · ee95e4f5
      Nick Apperson authored
      
      
      Increase the performance and simplify the logic of Buffer#write{U}Int*
      and Buffer#read{U}Int* methods by placing the byte manipulation code
      directly inline.
      
      Also improve the speed of buffer-write benchmarks by creating a new
      call directly to each method by using Function() instead of calling by
      buff[fn].
      
      Signed-off-by: default avatarTrevor Norris <trev.norris@gmail.com>
      
      Conflicts:
      	lib/buffer.js
      ee95e4f5
  18. Jun 23, 2014
  19. Jun 17, 2014
  20. Jun 14, 2014