Skip to content

Conversation

@atuchin-m
Copy link
Collaborator

@atuchin-m atuchin-m commented Oct 31, 2025

For brave/brave-browser#50463
The PR improves ruleset building time by reducing the number of allocations (-8%, see memory-usage/brave-list-initial/alloc-count)

@atuchin-m atuchin-m self-assigned this Oct 31, 2025
@atuchin-m atuchin-m force-pushed the optimize-utils-tokenize branch from e47f1f9 to 01af219 Compare October 31, 2025 23:32
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Rust Benchmark

Benchmark suite Current: 01af219 Previous: 671ee95 Ratio
rule-match-browserlike/brave-list 2250322959 ns/iter (± 18342022) 2291947688 ns/iter (± 10780439) 0.98
rule-match-first-request/brave-list 1095665 ns/iter (± 12657) 1098909 ns/iter (± 9107) 1.00
blocker_new/brave-list 173913464 ns/iter (± 1163989) 178639073 ns/iter (± 674433) 0.97
blocker_new/brave-list-deserialize 24288757 ns/iter (± 399811) 24510742 ns/iter (± 406712) 0.99
memory-usage/brave-list-initial 10212224 ns/iter (± 3) 10212224 ns/iter (± 3) 1
memory-usage/brave-list-initial/max 64056423 ns/iter (± 3) 64057431 ns/iter (± 3) 1.00
memory-usage/brave-list-initial/alloc-count 1482122 ns/iter (± 3) 1610823 ns/iter (± 3) 0.92
memory-usage/brave-list-1000-requests 2666958 ns/iter (± 3) 2666926 ns/iter (± 3) 1.00
memory-usage/brave-list-1000-requests/alloc-count 71369 ns/iter (± 3) 71337 ns/iter (± 3) 1.00
url_cosmetic_resources/brave-list 206558 ns/iter (± 824) 198077 ns/iter (± 983) 1.04
cosmetic-class-id-match/brave-list 3342175 ns/iter (± 931503) 3358839 ns/iter (± 920606) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@atuchin-m atuchin-m marked this pull request as ready for review October 31, 2025 23:40
@atuchin-m atuchin-m requested a review from a team as a code owner October 31, 2025 23:40
@atuchin-m atuchin-m requested a review from antonok-edm October 31, 2025 23:43
@atuchin-m atuchin-m merged commit 70416a0 into master Nov 3, 2025
9 checks passed
@atuchin-m atuchin-m deleted the optimize-utils-tokenize branch November 3, 2025 18:18
@atuchin-m atuchin-m added the perf label Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants