Skip to content

refactor(rules): extract crawl logic into standalone functions #1559

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gvozdvmozgu
Copy link
Collaborator

No description provided.

Copy link

Benchmark for 3ef0dcb

Click to view benchmark
Test Base PR %
DepthMap::from_parent 39.8±0.43µs 40.3±0.33µs +1.26%
fix_complex_query 9.3±0.06ms 9.6±0.49ms +3.23%
fix_superlong 97.8±5.72ms 106.8±11.29ms +9.20%
parse_complex_query 2.8±0.03µs 2.9±0.04µs +3.57%
parse_expression_recursion 5.0±0.05µs 5.2±0.03µs +4.00%
parse_simple_query 787.8±10.58ns 834.5±5.43ns +5.93%

@benfdking
Copy link
Collaborator

benfdking commented Apr 29, 2025

Do you have any view as to why everything got slower?

@gvozdvmozgu
Copy link
Collaborator Author

gvozdvmozgu commented Apr 29, 2025

Since merge #1554, performance has significantly decreased (Execution took: 332.133794ms on that PR).

@benfdking
Copy link
Collaborator

Yep I had to do that painful fix to get the python stuff working.

@gvozdvmozgu
Copy link
Collaborator Author

I don't have these issues locally, so it's possible that GitHub Actions is just under heavy load?

@gvozdvmozgu
Copy link
Collaborator Author

It seems that #1561 fixes the problem, and the numbers are more convincing again.

@gvozdvmozgu
Copy link
Collaborator Author

No, they’re still too noisy. Maybe we should run it at the very end—after everything else—and report the average over N runs.

@gvozdvmozgu gvozdvmozgu force-pushed the refactor/extract-crawl-logic branch from 65ee394 to 89c8a87 Compare May 1, 2025 07:56
Copy link

github-actions bot commented May 1, 2025

Benchmark for c717b8a

Click to view benchmark
Test Base PR %
DepthMap::from_parent 41.7±0.19µs 40.1±0.27µs -3.84%
fix_complex_query 9.3±0.04ms 9.3±0.58ms 0.00%
fix_superlong 91.8±5.80ms 99.4±14.68ms +8.28%
parse_complex_query 2.9±0.04µs 2.8±0.02µs -3.45%
parse_expression_recursion 5.1±0.05µs 5.0±0.06µs -1.96%
parse_simple_query 806.1±7.88ns 793.8±10.32ns -1.53%

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