On Fri, Jun 26, 2015 at 2:54 AM, <bu...@shyp.com> wrote: > Hi, > While profiling one of my tests I noticed that accessing the `stack` > property of an Error object is extremely slow; anywhere from 5 to 100ms on > my pretty new MBP (I can reliably reproduce one test case where it takes > 100ms to access the property). I'm running node v0.12.4, however most of the > code in my application is written in Coffeescript. Switching `err.stack` and > `console.trace()` is just as slow. > > Has anyone else observed stack traces that are this slow? Are there any > possible workarounds, besides not logging the stack trace? > > Sorry this is a little vague, I can provide more info if I can get hints > about where to look. > > Thanks, > Kevin
Do you see the same behavior with io.js? I think you are hitting a (fixed but not in v0.12) V8 bug. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAHQurc9x8Jmwi5x4%3DU8o3s%3DJq8hX8h0Xnih9%3DEfyLWNb7B7WqA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.