nodestream-proj / nodestream

A Declarative framework for Building, Maintaining, and Analyzing Graph Data
https://nodestream-proj.github.io/docs/
Apache License 2.0
36 stars 11 forks source link

Timestamp Caching #263

Closed zprobst closed 6 months ago

zprobst commented 6 months ago

Was playing around with some rust code over the weekend. On a hunch, I had a feeling that getting datetimes from pandas was going to be slow and alas... it was. This implements a time cache so that we don't get Pandas datetimes 1000s of times a second.

Current Performance

old

After Optimization

new
codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.43%. Comparing base (3a648ac) to head (508412d). Report is 18 commits behind head on 0.12.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 0.12 #263 +/- ## ========================================== - Coverage 97.46% 97.43% -0.03% ========================================== Files 138 138 Lines 4495 4521 +26 ========================================== + Hits 4381 4405 +24 - Misses 114 116 +2 ``` | [Flag](https://app.codecov.io/gh/nodestream-proj/nodestream/pull/263/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodestream-proj) | Coverage Δ | | |---|---|---| | [3.10-macos-latest](https://app.codecov.io/gh/nodestream-proj/nodestream/pull/263/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodestream-proj) | `97.43% <100.00%> (-0.03%)` | :arrow_down: | | [3.10-ubuntu-latest](https://app.codecov.io/gh/nodestream-proj/nodestream/pull/263/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodestream-proj) | `97.43% <100.00%> (-0.03%)` | :arrow_down: | | [3.10-windows-latest](https://app.codecov.io/gh/nodestream-proj/nodestream/pull/263/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodestream-proj) | `97.37% <100.00%> (-0.03%)` | :arrow_down: | | [3.11-macos-latest](https://app.codecov.io/gh/nodestream-proj/nodestream/pull/263/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodestream-proj) | `97.43% <100.00%> (-0.03%)` | :arrow_down: | | [3.11-ubuntu-latest](https://app.codecov.io/gh/nodestream-proj/nodestream/pull/263/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodestream-proj) | `97.43% <100.00%> (-0.03%)` | :arrow_down: | | [3.11-windows-latest](https://app.codecov.io/gh/nodestream-proj/nodestream/pull/263/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodestream-proj) | `97.37% <100.00%> (-0.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodestream-proj#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.