Skip to content

Commit 46e07b1

Browse files
committed
add a couple perf TODOs
1 parent c5f9e74 commit 46e07b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plot_api/plot_api.js

+3
Original file line numberDiff line numberDiff line change
@@ -1949,6 +1949,7 @@ function axRangeSupplyDefaultsByPass(gd, flags, specs) {
19491949
axOut.range = axIn.range.slice();
19501950
axOut.cleanRange();
19511951

1952+
// TODO could be slow!!
19521953
for(var i = 0; i < axisMatchGroups.length; i++) {
19531954
var group = axisMatchGroups[i];
19541955
if(group[axId]) {
@@ -1979,6 +1980,8 @@ function addAxRangeSequence(seq, rangesAltered) {
19791980
var ax = Axes.getFromId(gd, id);
19801981
axIds.push(id);
19811982

1983+
// TODO could be slow!!
1984+
// ... maybe combine with loop in axRangeSupplyDefaultsByPass
19821985
for(var i = 0; i < matchGroups.length; i++) {
19831986
var group = matchGroups[i];
19841987
if(group[id]) {

0 commit comments

Comments
 (0)