mirror of
https://github.com/danbulant/node-x11
synced 2026-05-24 12:35:39 +00:00
disable long stack trace to improve performance
This commit is contained in:
parent
f70108e6f3
commit
7df3e1d3fd
1 changed files with 4 additions and 1 deletions
|
|
@ -100,11 +100,14 @@ XClient.prototype.importRequestsFromTemplates = function(target, reqs)
|
||||||
else
|
else
|
||||||
client.seq_num++;
|
client.seq_num++;
|
||||||
|
|
||||||
// long stack traces. going to disable in next commit, keep it currently to compare performance
|
// disable long stack trace for the moment, it's too expensive
|
||||||
|
// performance when enabled: 70000 requests finished in 52196 ms, 1341.0989347842747 req/sec
|
||||||
|
/*
|
||||||
var err = new Error;
|
var err = new Error;
|
||||||
err.name = reqName;
|
err.name = reqName;
|
||||||
Error.captureStackTrace(err, arguments.callee);
|
Error.captureStackTrace(err, arguments.callee);
|
||||||
client.seq2stack[client.seq_num] = err.stack;
|
client.seq2stack[client.seq_num] = err.stack;
|
||||||
|
*/
|
||||||
|
|
||||||
// is it fast?
|
// is it fast?
|
||||||
var args = Array.prototype.slice.call(req_proxy.arguments);
|
var args = Array.prototype.slice.call(req_proxy.arguments);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue