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

Graph projection speedup SYN-6219, SYN-6467 #3375

Merged
merged 40 commits into from Nov 17, 2023

Conversation

rakuy0
Copy link
Contributor

@rakuy0 rakuy0 commented Oct 6, 2023

A simple inet:web:post query that would project 2751 nodes to 8444 nodes originally took about 13.5 minutes on my machine. This patch drops that down to just over 3 seconds while maintaining equivalent edge construction.

@rakuy0 rakuy0 requested a review from invisig0th October 6, 2023 21:47
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (992f6f7) 97.40% compared to head (66f0c7c) 97.31%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3375      +/-   ##
==========================================
- Coverage   97.40%   97.31%   -0.09%     
==========================================
  Files         233      233              
  Lines       48221    48326     +105     
==========================================
+ Hits        46968    47027      +59     
- Misses       1253     1299      +46     
Flag Coverage Δ
linux 97.31% <100.00%> (+0.01%) ⬆️
linux_replay ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rakuy0 rakuy0 added enhancement reqChangelog requires changelog labels Oct 9, 2023
synapse/lib/ast.py Outdated Show resolved Hide resolved
synapse/lib/ast.py Outdated Show resolved Hide resolved
synapse/lib/snap.py Outdated Show resolved Hide resolved
synapse/lib/layer.py Outdated Show resolved Hide resolved
synapse/lib/ast.py Show resolved Hide resolved
@rakuy0 rakuy0 changed the title Graph projection speedup SYN-6219 WIP: Graph projection speedup SYN-6219 Oct 16, 2023
@rakuy0 rakuy0 changed the title WIP: Graph projection speedup SYN-6219 Graph projection speedup SYN-6219 Nov 2, 2023
@rakuy0 rakuy0 changed the title Graph projection speedup SYN-6219 Graph projection speedup SYN-6219, SYN-6467 Nov 15, 2023
synapse/lib/ast.py Outdated Show resolved Hide resolved
@invisig0th invisig0th merged commit 2c7c311 into master Nov 17, 2023
5 checks passed
@invisig0th invisig0th deleted the rakuyo/graph-projection-speedup-6219 branch November 17, 2023 18:19
@vEpiphyte vEpiphyte added this to the v2.155.0 milestone Nov 17, 2023
@vEpiphyte vEpiphyte removed the reqChangelog requires changelog label Nov 17, 2023
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.

None yet

4 participants