mirror of
https://github.com/danbulant/node-x11
synced 2026-05-21 21:39:13 +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
|
||||
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;
|
||||
err.name = reqName;
|
||||
Error.captureStackTrace(err, arguments.callee);
|
||||
client.seq2stack[client.seq_num] = err.stack;
|
||||
*/
|
||||
|
||||
// is it fast?
|
||||
var args = Array.prototype.slice.call(req_proxy.arguments);
|
||||
|
|
|
|||
Loading…
Reference in a new issue