Skip to content

Use the one flatbuffer to store all lists [0.11.x]#493

Merged
atuchin-m merged 22 commits into
0.11.xfrom
the-one-fb
Jul 1, 2025
Merged

Use the one flatbuffer to store all lists [0.11.x]#493
atuchin-m merged 22 commits into
0.11.xfrom
the-one-fb

Conversation

@atuchin-m
Copy link
Copy Markdown
Collaborator

Retargeted #489 to 0.11.x

@atuchin-m atuchin-m self-assigned this Jun 30, 2025
@atuchin-m atuchin-m requested a review from antonok-edm as a code owner June 30, 2025 11:48
Copy link
Copy Markdown

@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

Details
Benchmark suite Current: 3f7aa97 Previous: 4738d3f Ratio
rule-match-browserlike/brave-list 2276544815 ns/iter (± 20923937) 2252126465 ns/iter (± 13369021) 1.01
rule-match-first-request/brave-list 1006441 ns/iter (± 9030) 1000284 ns/iter (± 8364) 1.01
blocker_new/brave-list 149232363 ns/iter (± 1596195) 150674514 ns/iter (± 1975624) 0.99
blocker_new/brave-list-deserialize 64506480 ns/iter (± 2732717) 62360204 ns/iter (± 1865060) 1.03
memory-usage/brave-list-initial 16282069 ns/iter (± 3) 16225933 ns/iter (± 3) 1.00
memory-usage/brave-list-initial/max 64817658 ns/iter (± 3) 64817658 ns/iter (± 3) 1
memory-usage/brave-list-initial/alloc-count 1514486 ns/iter (± 3) 1514650 ns/iter (± 3) 1.00
memory-usage/brave-list-1000-requests 2516487 ns/iter (± 3) 2505592 ns/iter (± 3) 1.00
memory-usage/brave-list-1000-requests/alloc-count 66556 ns/iter (± 3) 66070 ns/iter (± 3) 1.01

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

Copy link
Copy Markdown

@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.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rust Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.10.

Benchmark suite Current: 0bb327f Previous: 4738d3f Ratio
blocker_new/brave-list-deserialize 70978848 ns/iter (± 1126125) 62360204 ns/iter (± 1865060) 1.14

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

Comment thread src/engine.rs Outdated

Self {
blocker: Blocker::new(network_filters, &blocker_options),
blocker: Blocker::from_context(filter_data_context.clone()),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this .clone() should be FilterDataContextRef::clone

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

Comment thread src/engine.rs Outdated
@atuchin-m atuchin-m merged commit ecd3adb into 0.11.x Jul 1, 2025
7 checks passed
@atuchin-m atuchin-m deleted the the-one-fb branch July 1, 2025 10:00
atuchin-m added a commit that referenced this pull request Aug 12, 2025
The PR moves from per-NetworkList flatbuffers to a one (per-Engine).
It doesn't affect the performance metrics, but opens
a possibility to put cosmetic filters to the same flatbuffer.
It also simplifies the serialization/deserialization code.
atuchin-m added a commit that referenced this pull request Oct 16, 2025
The PR moves from per-NetworkList flatbuffers to a one (per-Engine).
It doesn't affect the performance metrics, but opens
a possibility to put cosmetic filters to the same flatbuffer.
It also simplifies the serialization/deserialization code.
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