joyent/node — pull request #3709 by isaacs (2012-07-14 01:34:44+00:00)
Title: nextTick Now

Run nextTick callbacks right away.

```
$ ./node benchmark/next-tick-2.js
nextTick callbacks per second: 4545455

# master:
nextTick callbacks per second: 1700680
```

Less dramatic speedup on http_simple, but still an improvement:

```
$ bash benchmark/http.sh
Requests per second: 3420.11 [#/sec] (mean)

# master
Requests per second: 3260.39 [#/sec] (mean)
```

Event loop starvation is prevented responsibly, but it IS possible if you set the `process.maxTickDepth` to a very high number (like `Infinity`).

Tests and docs included.