Skip to content

chore: Update hotpath, use measure_all macro#167

Merged
load1n9 merged 2 commits intotryandromeda:mainfrom
pawurb:hotpath_pr
Oct 19, 2025
Merged

chore: Update hotpath, use measure_all macro#167
load1n9 merged 2 commits intotryandromeda:mainfrom
pawurb:hotpath_pr

Conversation

@pawurb
Copy link
Contributor

@pawurb pawurb commented Oct 19, 2025

Hi. This PR updates https://github.com/pawurb/hotpath to 0.5. Notable change is introduction of measure_all macro that allows to automatically profile all methods inside an impl (or mod) reducing config overhead.

Once this is merged we could also enable automatic profiling on each PR. An example is here: pawurb#2. It sends a comment with perf changes to every PR, to help spot regressions. A sample ts script could probably be improved to cover more edge cases.

For now I've only enabled timing perf. You're using recursive functions so output of memory profiling does not make much sense now. I'll try to improve it in the future release.

@marc2332
Copy link
Member

marc2332 commented Oct 19, 2025

@pawurb Fix here pawurb/hotpath-rs#39!

I see you fixed it already, nice

@marc2332 marc2332 requested a review from load1n9 October 19, 2025 13:16
Copy link
Member

@load1n9 load1n9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@load1n9 load1n9 merged commit f113125 into tryandromeda:main Oct 19, 2025
7 checks passed
@pawurb pawurb deleted the hotpath_pr branch October 19, 2025 15:00
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