Skip to content

Commit

Permalink
📚 docs(optimization): Make instructions reusable.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Jun 2, 2021
1 parent a019396 commit 89c7545
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/manual/optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ Mostly noise for the moment. There must be something else to fix...
At this point I decided to use a better tool than intuition to progress:
profiling. This change is the first where I guided the pruning by looking at
the output of `node --prof benchmark/tree.js` using `node-tick-processor`
from the [tick](https://www.npmjs.com/package/tick) package.
the output of `node --prof benchmark/tree.js` using `node --prof-process`.

Before this change, digit measures where computed using the idiom

Expand Down Expand Up @@ -216,7 +215,7 @@ This is a big one. I started writing this library with es6 syntax in mind.
However, looking at the profiler output you will see:

```sh
$ node-tick-processor isolate-0x2af4cf0-v8.log | grep '3:24'
$ node --prof-process (exa -snew isolate-*.log | tail -1) | grep '3:24'
146 2.3% 2.4% LazyCompile: *get ~/sandbox/finger-tree/js/dist/fingertree.js:3:24
278 100.0% LazyCompile: *get ~/sandbox/finger-tree/js/dist/fingertree.js:3:24
6 100.0% LazyCompile: *get ~/sandbox/finger-tree/js/dist/fingertree.js:3:24
Expand Down

0 comments on commit 89c7545

Please sign in to comment.