Skip to content

Optimize collect_package_info - #285

Merged
alexmojaki merged 1 commit into
mainfrom
alex/optimize-collect_package_info
Jun 28, 2024
Merged

alexmojaki merged 1 commit into
mainfrom
alex/optimize-collect_package_info

Conversation

@alexmojaki

Copy link
Copy Markdown
Contributor

The previous implementation implicitly called dist.metadata 4 times for each distribution, which would read and parse a file each time. So this makes collect_package_info nearly 4 times faster, and makes logfire.configure() about 2.5x faster overall.

@alexmojaki
alexmojaki requested a review from adriangb June 28, 2024 16:50
@codecov

codecov Bot commented Jun 28, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@alexmojaki
alexmojaki merged commit bf5d860 into main Jun 28, 2024
@alexmojaki
alexmojaki deleted the alex/optimize-collect_package_info branch June 28, 2024 17:06
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