Skip to content

Only open first two panes by default #871

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

Merged
merged 1 commit into from
Jan 12, 2018

Conversation

jart
Copy link
Contributor

@jart jart commented Jan 12, 2018

This will prevent TensorBoard from using too many resources for anyone with a
large number of tags. In the near future we might want to solve this in a
smarter way, possibly by not rendering things outside the viewport.

See also #728

@jart jart requested a review from chihuahua January 12, 2018 02:24
Copy link
Member

@chihuahua chihuahua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a creative solution to an important performance problem!

And yes, not rendering things outside the viewport seems like a great task to do later.

@@ -160,6 +160,10 @@ <h3>No audio data was found.</h3>
});
},

_shouldOpen(index) {
return index <= 2;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think this should be 1, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprisingly enough, the indexes appear to start at 1.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks for the info!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that makes sense!

@@ -245,6 +245,10 @@ <h3>No scalar data was found.</h3>
return _smoothingWeight > 0;
},

_shouldOpen(index) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also update tf-pr-curve-dashboard.html and tf-text-dashboard.html?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

This will prevent TensorBoard from using too many resources for anyone with a
large number of tags. In the near future we might want to solve this in a
smarter way, possibly by not rendering things outside the viewport.

See also tensorflow#728
@jart jart force-pushed the close-the-pod-bay-doors-hal branch from a5dcd48 to 9d1567a Compare January 12, 2018 06:28
@jart jart merged commit 942a254 into tensorflow:master Jan 12, 2018
@jart jart deleted the close-the-pod-bay-doors-hal branch January 12, 2018 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants