-
Notifications
You must be signed in to change notification settings - Fork 149
[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
base: master
Are you sure you want to change the base?
Conversation
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()) } |
There was a problem hiding this comment.
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() | ||
} |
There was a problem hiding this comment.
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() | ||
} |
There was a problem hiding this comment.
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
There was a problem hiding this 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.
No description provided.