Skip to content

Speed up loader by using hstack instead of merge where possible#2126

Merged
maxnoe merged 6 commits into
masterfrom
hstack_loader
Nov 21, 2022
Merged

Speed up loader by using hstack instead of merge where possible#2126
maxnoe merged 6 commits into
masterfrom
hstack_loader

Conversation

@maxnoe
Copy link
Copy Markdown
Member

@maxnoe maxnoe commented Nov 18, 2022

This speeds up the TableLoader quite a lot. In my quick test, loading the dl2 electron file I produced (96 MB only subarray data) went from 10s to 4.5 seconds although two of four dl2 columns are not ordered correctly, see #2125.

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 18, 2022

Codecov Report

Base: 92.75% // Head: 92.74% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (799925c) compared to base (248dfd0).
Patch coverage: 92.85% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2126      +/-   ##
==========================================
- Coverage   92.75%   92.74%   -0.01%     
==========================================
  Files         214      214              
  Lines       17876    17910      +34     
==========================================
+ Hits        16580    16611      +31     
- Misses       1296     1299       +3     
Impacted Files Coverage Δ
ctapipe/io/tableloader.py 97.43% <89.28%> (-0.99%) ⬇️
ctapipe/tools/apply_models.py 96.25% <100.00%> (+0.30%) ⬆️
ctapipe/tools/tests/test_apply_models.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment thread ctapipe/io/tableloader.py Outdated
Comment thread ctapipe/io/tableloader.py Outdated
StFroese
StFroese previously approved these changes Nov 20, 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.

3 participants