Skip to content

iotjs: cache parsed dump table for error.stack at runtime#392

Merged
yorkie merged 5 commits intomasterfrom
optimize/error-stack
Oct 25, 2018
Merged

iotjs: cache parsed dump table for error.stack at runtime#392
yorkie merged 5 commits intomasterfrom
optimize/error-stack

Conversation

@yorkie
Copy link
Copy Markdown
Member

@yorkie yorkie commented Oct 25, 2018

This optimizes the performance when printing stacktrace from an error.
We did parse and generate the table every time when we want to print
the stack.

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added

This optimizes the performance when printing stacktrace from an error.
We did parse and generate the table every time when we want to print
the stack.
@yorkie
Copy link
Copy Markdown
Member Author

yorkie commented Oct 25, 2018

iotjs benchmark/run.js error

error/stack.js
error/stack.js n=128: 249.5510717566385

./build/x86_64-darwin/debug/bin/iotjs benchmark/run.js error

error/stack.js
error/stack.js n=128: 1,055.6660197330866

@yorkie yorkie merged commit c256f42 into master Oct 25, 2018
@yorkie yorkie deleted the optimize/error-stack branch October 25, 2018 18:27
qile222 pushed a commit that referenced this pull request Oct 27, 2018
* master:
  build: use CMAKE_INSTALL_PREFIX instead of custom install command (#391)
  child_process: introduce binary protocol to optimizing performance (#393)
  iotjs: cache parsed dump table for error.stack at runtime (#392)
  jerry: merge a59cf4f from upstream to optimize the function call (#381)
  promise: optimize the performance on .then and static resolve (#385)
  jerry: set prototype/constructor for external functions (#386)
  process: add shebang parser supports (#379)
  napi: fix complete callback segv/ticks on async-work (#380)
  jerry: pass regression-test-issue-2105 for heapdump (#382)
  tls, mqtts: fix connection not be actively disconnected (#375)
  websocket: fix the crash due to http exception (#376)
  process: add signal events support (#372)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants