From 7df3e1d3fda44a5aeabc78b4d318e4191674a012 Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Mon, 16 Jul 2012 14:26:33 +1000 Subject: [PATCH] disable long stack trace to improve performance --- lib/x11/xcore.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/x11/xcore.js b/lib/x11/xcore.js index 062efe2..e7c383e 100644 --- a/lib/x11/xcore.js +++ b/lib/x11/xcore.js @@ -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);