1. Nov 01, 2012
  2. Oct 31, 2012
  3. Oct 30, 2012
    • Brandon Philips's avatar
      tls: delete useless removeListener call · 19b87bbd
      Brandon Philips authored
      onclose was never attached to 'end' so this call to remove this listener
      is useless.  Delete it.
      19b87bbd
    • Ben Noordhuis's avatar
      zlib: pass object size hint to V8 · a93424da
      Ben Noordhuis authored
      Inform V8 that the zlib context object is tied to a large off-heap buffer.
      
      This makes the GC run more often (in theory) and improves the accuracy of
      --trace_external_memory.
      a93424da
    • Ben Noordhuis's avatar
      zlib: reduce memory consumption, release early · 570e4be9
      Ben Noordhuis authored
      In zlibBuffer(), don't wait for the garbage collector to reclaim the zlib memory
      but release it manually. Reduces memory consumption by a factor of 10 or more
      with some workloads.
      
      Test case:
      
        function f() {
          require('zlib').deflate('xxx', g);
        }
        function g() {
          setTimeout(f, 5);
        }
        f();
      
      Observe RSS memory usage with and without this commit. After 10,000 iterations,
      RSS stabilizes at ~35 MB with this commit. Without, RSS is over 300 MB and keeps
      growing.
      
      Cause: whenever the JS object heap hits the high-water mark, the V8 GC sweeps
      it clean, then tries to grow it in order to avoid more sweeps in the near
      future. Rule of thumb: the bigger the JS heap, the lazier the GC can be.
      
      A side effect of a bigger heap is that objects now live longer. This is harmless
      in general but it affects zlib context objects because those are tied to large
      buffers that live outside the JS heap, on the order of 16K per context object.
      
      Ergo, don't wait for the GC to reclaim the memory - it may take a long time.
      
      Fixes #4172.
      570e4be9
    • isaacs's avatar
      Print warning when maxTickDepth is reached · 21c741f2
      isaacs authored
      21c741f2
  4. Oct 29, 2012
    • Scott Blomquist's avatar
      windows: correct outputs list in "node_etw" gyp target · 953b049a
      Scott Blomquist authored
      The gyp target node_etw didn't list its output dependencies. This
      was causing virgin builds to fail with a "failed to open file for
      write" error.
      
      With this corrected outputs list, gyp reliably pre-creates
      required output directories.
      953b049a
  5. Oct 25, 2012
  6. Oct 24, 2012
  7. Oct 23, 2012