[BUG]: `scattergl` hover is slow above 100k points
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 58/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript
調査の方向性
Start by comparing the hover path in src/traces/scattergl/hover.js with the threshold and point-cluster tree behavior in src/traces/scattergl/constants.ts; reproduce the lag with the provided 100,000 point example and compare it with 99,999 points. Determine why the .range() call is slow with infinite or wide bounds, then verify hover remains responsive at and above the threshold.
索引モデルが issue の本文から書いたものです。
説明
Description
With 100,000 or more points, hovering over a scattergl trace is much slower than with 99,999 points.
Steps to reproduce
- Open Plotly devtools and paste the following into the browser devtools console:
let n = 100000;
Plotly.newPlot('graph', [{
type: 'scattergl',
mode: 'markers',
x0: 0,
dx: 1,
y: Array(n).fill(0)
}]);
- Hover over individual points and note the lag
- Change
nto99999and note that hover is fast
Notes
- At
TOO_MANY_POINTS(src/traces/scattergl/constants.ts),scatterglswitches from a plain array to the point-cluster tree - The slow call is
.range()insrc/traces/scattergl/hover.js - It's very slow with infinite bounds; it also seems slower than a plain array scan when the bounds cover a large share of the points
- Either
hover.jscalls.range()in a non-optimal way, orplotly/point-clusterhas a performance bug - #8052 stops the plot from freezing, but hover is still laggy
- Also related to #8036
- 主要言語
- JavaScript
- スター
- 18.4k
- フォーク
- 2.1k
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
plotly/plotly.js のほかの issue
-
[BUG]: `sankey`: `node.x` / `node.y` of `0` is ignored対応中かも @adimalkar が 2 日前に担当しました。 オープンbug P3 size: 1
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
plotly/plotly.js#8150 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[BUG]: `scatterpolargl` drops points between 10000 and 100000 points対応中かも @Tanishdete333 が 2 日前に担当しました。 オープンbug P3 size: 1
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
plotly/plotly.js#8148 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[BUG]: findEmpties throws "iterated with no new neighbors" for large NaN regions in contour (double-precision underflow)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug P3 size: 3
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
plotly/plotly.js#8108 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
-
chore P3 plotly-internal size: 3 task
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
plotly/plotly.js#8064 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
chore P1 plotly-internal size: 1 task
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
plotly/plotly.js の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LucasSantana-Dev/Lucky#2945 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
brijeshb42/monaco-vim#175 ·
-
good first issue
難易度 2/5 3〜5日 初心者へのやさしさ 62/100
paipai1999/POS-system#3 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
MikeMcl/bignumber.js#418 ·