- Dec 20, 2012
-
-
Bert Belder authored
-
Bert Belder authored
When perlasm generates MASM code it sets the assembler target to 468. In this mode MASM refuses to assemble a couple of instructions. Bumping the target to 686 solves this problem.
-
Bert Belder authored
This patch brings the openssl library that is built with gyp closer to what the standard build system produces. All opensslconf.h versions are now merged into a single file, which makes it easier for compiled addons to locate this file.
-
Ben Noordhuis authored
-
Ben Noordhuis authored
-
Ben Noordhuis authored
Apply the same optimization to res.end(buf) that is applied to res.end(str). Speeds up `node benchmark/http_simple_auto -k -c 1 -n 25000 buffer/1` (non-chunked response body) by about 750x. That's not a typo. Chunked responses: $ cat tmp/http-chunked-client.js // Run `node benchmark/http_simple` in another terminal. var http = require('http'), url = require('url'); var options = url.parse('http://127.0.0.1:8000/buffer/1/1'); options.agent = new http.Agent({ maxSockets: 1 }); for (var i = 0; i < 25000; ++i) http.get(options); Before: $ time out/Release/node tmp/http-chunked-client.js real 16m40.411s user 0m9.184s sys 0m0.604s After: $ time out/Release/node tmp/http-chunked-client.js real 0m5.386s user 0m2.768s sys 0m0.728s That's still a 185x speed-up. Fixes #4415. -
Ben Noordhuis authored
Use res.end() for the final chunk so we can benchmark the 'hot path' shortcut in lib/http.js that packs the headers and the body into a single packet.
-
Farid Neshat authored
-
isaacs authored
This fixes pummel/test-net-write-callbacks
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
- Dec 19, 2012
-
-
Timothy J Fontaine authored
-
isaacs authored
This is very similar to http.sh, but generates a flamegraph with dtrace, pruning off the single-hit stacks so that we can more easily see the places where relevant amounts of time are spent.
-
isaacs authored
-
- Dec 18, 2012
-
-
Ben Noordhuis authored
Remove the idle garbage collector. Its purpose was to run the garbage collector when the application is idle but it never worked quite right. Many people have complained over the years that with heaps > 128 MB, a node.js process never sleeps anymore; instead, it spends nearly 100% of its CPU time trying to collect garbage. Back in the old days, idle GC probably was a good idea. But with V8's current incremental collector, idle gc appears to offer no time or space benefits whatsoever and indeed seems actively harmful. Remove it. Fixes #3870.
-
Ben Noordhuis authored
Replace dashes with underscores. When loading foo-bar.node, look for foo_bar_module, not foo-bar_module. The latter is not a legal symbol name.
-
Ben Noordhuis authored
-
Fedor Indutny authored
-
isaacs authored
This fixes the case where stderr doesn't flush before the process exits.
-
Dean McNamee authored
When Mikael Bourges-Sevenier added support for Uint8ClampedArray in 67fc1daf, the new type was not added to SizeOfArrayElementForType().
-
Dean McNamee authored
Although it is not used externally by node, it is needed by upstream and Plask. This effectively reverts: commit 14448013 Author: Aaron Jacobs <jacobsa@google.com> Date: Thu Mar 15 13:26:35 2012 +1100 typed arrays: unexport SizeOfArrayElementForType() It isn't used anywhere else, so made it an implementation detail in v8_typed_array.cc. -
Nicolas Chambrier authored
-
- Dec 17, 2012
-
-
Fedor Indutny authored
This reverts commit 02dffb06. DEAD_CODE_STRIPPING is stripping out CRYPTO_set_add_lock_callback symbol on which some addons are relying.
-
Ben Noordhuis authored
Man pages go into $PREFIX/man on OpenBSD, not $PREFIX/share/man.
-
Ben Noordhuis authored
-
isaacs authored
Fix #4418
-
Brian White authored
Make parser errors bubble up to the ClientRequest instead of the underlying net.Socket object. This is a back-port of commit c78678b0 from the master branch. Fixes #3776.
-
- Dec 16, 2012
-
-
Ben Noordhuis authored
Work around an issue with the glibc malloc() implementation where memory blocks are never returned to the operating system when they are allocated with brk() and have overlapping lifecycles. Fixes #4283.
-
isaacs authored
-
- Dec 15, 2012
-
-
isaacs authored
-
isaacs authored
Streams2 style streams might have already kicked off a read() or write() before emitting 'data' events. Make the test less dependent on ordering of when data events occur.
-
isaacs authored
-
isaacs authored
-
isaacs authored
-
isaacs authored
Because of some of the peculiarities of http, this has a bit of special magic to handle cases where the IncomingMessage would wait forever in a paused state. In the server, if you do not begin consuming the request body by the time the response emits 'finish', then it will be flushed out. In the client, if you do not add a 'response' handler onto the request, then the response stream will be flushed out.
-
isaacs authored
Unnecessary in streams2
-
isaacs authored
-
isaacs authored
-