Skip to content

[DRAFT] Use the one flatbuffer to store all lists #489

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

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

atuchin-m
Copy link
Collaborator

No description provided.

@atuchin-m atuchin-m self-assigned this Jun 20, 2025
pub(crate) fn filter_list(&self) -> fb::NetworkFilterList<'_> {
unsafe { fb::root_as_network_filter_list_unchecked(self.data()) }
pub(crate) fn root(&self) -> fb::Engine<'_> {
unsafe { fb::root_as_engine_unchecked(self.data()) }

Choose a reason for hiding this comment

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

reported by reviewdog 🐶
[semgrep] Detected 'unsafe' usage, please audit for secure usage

Source: https://semgrep.dev/r/rust.lang.security.unsafe-usage.unsafe-usage


Cc @thypon @kdenhartog

flatbuffers::Vector<'a, flatbuffers::ForwardsUOffset<NetworkFilterList>>,
>>(Engine::VT_LISTS, None)
.unwrap()
}

Choose a reason for hiding this comment

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

reported by reviewdog 🐶
[semgrep] Detected 'unsafe' usage, please audit for secure usage

Source: https://semgrep.dev/r/rust.lang.security.unsafe-usage.unsafe-usage


Cc @thypon @kdenhartog

None,
)
.unwrap()
}

Choose a reason for hiding this comment

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

reported by reviewdog 🐶
[semgrep] Detected 'unsafe' usage, please audit for secure usage

Source: https://semgrep.dev/r/rust.lang.security.unsafe-usage.unsafe-usage


Cc @thypon @kdenhartog

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: a1042ef Previous: 1c4e2ac Ratio
memory-usage/brave-list-initial 16282069 ns/iter (± 3) 16225933 ns/iter (± 3) 1.00
memory-usage/brave-list-initial/max 78824921 ns/iter (± 3) 64817658 ns/iter (± 3) 1.22
memory-usage/brave-list-initial/alloc-count 1514487 ns/iter (± 3) 1514650 ns/iter (± 3) 1.00
memory-usage/brave-list-1000-requests 2516487 ns/iter (± 3) 2505576 ns/iter (± 3) 1.00
memory-usage/brave-list-1000-requests/alloc-count 66556 ns/iter (± 3) 66038 ns/iter (± 3) 1.01

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants