Re: [nodejs] Simple Memcached server in Javascript with 100 lines of code

2012-08-03 Thread Tim Caswell
Reducing GC pauses is a tricky problem. The best advice I can give is allocate less objects. Remember that functions, closures, and arrays are also objects. But don't do this blindly without understanding at the expense of making your code more complicated. Look at the V8 command-line options i

[nodejs] Simple Memcached server in Javascript with 100 lines of code

2012-08-02 Thread junyi sun
Hi guys, I am studying node.js. It is a wonderful utility to write network-based application. Now, I have written a memcached server using node.js. You can have a look at https://gist.github.com/3244607 I tested the program, and found it could reach 12000/s throughput. However, during the test,