Node on FIRE! Optimizing Callback Handler Performance in Aerospike Node.js
The Aerospike Node.js client's performance was significantly improved in version 2 with a switch to asynchronous, non-blocking I/O and adoption of error-first callback semantics. However, late in the development cycle, significant performance degradation was noticed due to the use of variable-length argument lists in the new callback handler function. After several iterations, a 34x gain in callback handling performance was achieved by using static function arguments instead of the special arguments object. This optimization was included in the first patch release v2.0.1.
Company
Aerospike
Date published
July 19, 2016
Author(s)
Jan Hecking
Word count
1336
Language
English
Hacker News points
None found.