Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Speed up TSVFile class#1272

Merged
joseph-robertson merged 3 commits into
developfrom
speed_up_tsvfile_class
Jul 15, 2024
Merged

Speed up TSVFile class#1272
joseph-robertson merged 3 commits into
developfrom
speed_up_tsvfile_class

Conversation

@shorowit

Copy link
Copy Markdown
Contributor

Pull Request Description

Speeds up the TSVFile class. When running smaller sample sizes, the initial reading of the large TSV files is the bottleneck. For e.g. 250 samples, this roughly cuts the time in half.

Checklist

Not all may apply:

…reading in the large TSV files is the bottleneck.
@shorowit shorowit self-assigned this Jul 13, 2024
@shorowit shorowit marked this pull request as ready for review July 15, 2024 14:44

@joseph-robertson joseph-robertson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I tried this locally, and w/out a doubt running sampling (or at least the stuff just before sampling) for the national baseline yml is much quicker. Thanks!

@joseph-robertson joseph-robertson merged commit 2865ed0 into develop Jul 15, 2024
@joseph-robertson joseph-robertson deleted the speed_up_tsvfile_class branch July 15, 2024 15:28
@joseph-robertson joseph-robertson added this to the ResStock v3.3.0 milestone Oct 7, 2024
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.

2 participants