This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var http = require('http'); | |
function doStat(tid) { | |
fs.stat(__dirname, function(err, stat) { | |
if (err) throw err; | |
console.error('thread ' + tid, stat.mtime); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/deps/v8/build/common.gypi b/deps/v8/build/common.gypi | |
index 9129d01..66cf4f1 100644 | |
--- a/deps/v8/build/common.gypi | |
+++ b/deps/v8/build/common.gypi | |
@@ -75,7 +75,7 @@ | |
# Chrome needs this definition unconditionally. For standalone V8 builds, | |
# it's handled in build/standalone.gypi. | |
- 'want_separate_host_toolset%': 1, | |
+ 'want_separate_host_toolset%': 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 09927155e778e4980ed09cdbeced28b2d294de7c | |
Author: Ryan Dahl <[email protected]> | |
Date: Sat Dec 17 12:13:16 2011 -0800 | |
Attempt to fix configure --dest-cpu | |
diff --git a/configure b/configure | |
index 1104c75..9e28811 100755 | |
--- a/configure | |
+++ b/configure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run this via crontab | |
var rss = require('rss'); | |
var fs = require('fs'); | |
var htmlFilename = '/home/node/web/nodejs.org/index.html'; | |
var url = 'http://jobs.nodejs.org/a/jbb/find-jobs-rss'; | |
var jobs = ''; | |
var response = rss.parseURL(url, function(articles) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node.gyp b/node.gyp | |
index 89f5ea7..60f3617 100644 | |
--- a/node.gyp | |
+++ b/node.gyp | |
@@ -72,6 +72,7 @@ | |
'src/cares_wrap.cc', | |
'src/handle_wrap.cc', | |
'src/node.cc', | |
+ 'src/node_vars.cc', | |
'src/node_buffer.cc', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node.gyp b/node.gyp | |
index 89f5ea7..60f3617 100644 | |
--- a/node.gyp | |
+++ b/node.gyp | |
@@ -72,6 +72,7 @@ | |
'src/cares_wrap.cc', | |
'src/handle_wrap.cc', | |
'src/node.cc', | |
+ 'src/node_vars.cc', | |
'src/node_buffer.cc', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% curl http://localhost:8000/ > outf | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 1024M 100 1024M 0 0 20.2M 0 0:00:50 0:00:50 --:--:-- 19.8M | |
% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index f8dbeaf..2511dce 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -1,7 +1,6 @@ | |
BUILDTYPE ?= Release | |
all: out/Makefile | |
- tools/gyp_node -f make | |
$(MAKE) -C out BUILDTYPE=$(BUILDTYPE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% time ./node benchmark/fast_buffer2_creation.js | |
./node benchmark/fast_buffer2_creation.js 0.34s user 0.01s system 79% cpu 0.450 total | |
% time ./node benchmark/fast_buffer_creation.js | |
./node benchmark/fast_buffer_creation.js 0.52s user 0.02s system 97% cpu 0.549 total | |
% time ./node benchmark/buffer_creation.js | |
./node benchmark/buffer_creation.js 2.61s user 0.63s system 117% cpu 2.758 total |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/projects/node% grep -R MakeCallback src | |
src/cares_wrap.cc: MakeCallback(object_, "oncomplete", 2, argv); | |
src/cares_wrap.cc: MakeCallback(object_, "oncomplete", 3, argv); | |
src/cares_wrap.cc: MakeCallback(object_, "oncomplete", 1, argv); | |
src/cares_wrap.cc: MakeCallback(req_wrap->object_, "oncomplete", 1, argv); | |
src/fs_event_wrap.cc: MakeCallback(wrap->object_, "onchange", 3, argv); | |
src/handle_wrap.h:// - MakeCallback may only be made directly off the event loop. | |
src/node.cc:// MakeCallback may only be made directly off the event loop. | |
src/node.cc:void MakeCallback(Handle<Object> object, | |
src/node.h:NODE_EXTERN void MakeCallback(v8::Handle<v8::Object> object, |