-
Notifications
You must be signed in to change notification settings - Fork 207
Pre-computed tooltips implemented. #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
6f0a495 to
115cac3
Compare
html/benchmarks.js
Outdated
| data: stats.map(a => [a[0], a[3]]), | ||
| atomic_queue_stats: stats, | ||
| data: stats.map((a) => { | ||
| const [mean, stdev, min, max] = [a[3], a[4], a[1], a[2]].map(prec0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should map over a[1:] slice. Indexing individual elements of a defeats the purpose of using map.
What is the intention behind this absurd order of identifiers in the destructuring statement?
html/benchmarks.js
Outdated
| <span class="tooltip_scalability_title">${n_threads} producers, ${n_threads} consumers</span> | ||
| const { x, points } = this; | ||
| const rows = points | ||
| .filter(({ series }) => series.visible) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think disabled series elements are present in the points array. Am I wrong?
html/benchmarks.js
Outdated
| const rows = points | ||
| .filter(({ series }) => series.visible) | ||
| .map(point => point.options.tooltip_row) | ||
| .join(''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For easy unanticipated debugging it is best for tooltip html to be nicely formatted for best readability. E.g. when you hover your mouse over rows variable in the debugger, often accidentally, you don't want to see all rows packed into one huge unreadable line, do you?
|
Thank you for the review! The changes to the remarks have been pushed. |
No description provided.