Skip to content
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

Do not initialise data structures to maximum possible tree size. #7919

Merged
merged 2 commits into from May 19, 2022

Conversation

RAMitchell
Copy link
Member

This change results in significant performance improvements when the tree is sparse, i.e. the user specifies some large max depth, but final tree size is significantly smaller than the maximum possible size.

Performance is otherwise unchanged.

Fraud dataset at max_depth=22 with gpu_hist:
before - 18.4165s
after - 1.7270s

@RAMitchell RAMitchell merged commit f6babc8 into dmlc:master May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants