From f3973972b727df480697443871d780596aba0201 Mon Sep 17 00:00:00 2001 From: email@example.com <firstname.lastname@example.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00> Date: Wed, 8 Dec 2010 16:23:25 +0000 Subject: [PATCH] Speed up quoting of JSON strings by allocating a string that is big enough and then trimming it when the length is known. This way we only have to traverse the input once. Review URL: http://codereview.chromium.org/5556012
Suggested by temp01 in IRC. http://irc.npmjs.org/node.js/2010-12-12#NODE-JS-2010-12-12T18-59-36-270Z 18:59:36 temp01: I feel like the build section on nodejs.org should link there 19:11:18 isaacs: temp01: yeah, that'd be helpful
This patch changes node's module loading behavior so that the require.cache is always the first place to consider when loading a module. The motivation for this change is to help people who are writing focused tests for their node.js applications, and need a mechanism to inject test doubles to replace native node.js modules.
node::SecureStream is definitely not a "stream" in the Node sense. Renaming it to avoid ambiguity. (Adding namespace to not confuse with some other Connection object.)