Skip to content

[News] Use interned strings for fast comparisons in feed building#34191

Merged
zenparsing merged 1 commit intomasterfrom
ksmith-news-perf-3
Feb 27, 2026
Merged

[News] Use interned strings for fast comparisons in feed building#34191
zenparsing merged 1 commit intomasterfrom
ksmith-news-perf-3

Conversation

@zenparsing
Copy link
Collaborator

Introduces a NameTable for interning publisher IDs and channel names, replacing string comparisons with integer comparisons during feed generation. Publisher-to-channel mappings are computed once and reused.

Subtask of brave/brave-browser#48969

@github-actions
Copy link
Contributor

Chromium major version is behind target branch (145.0.7632.120 vs 146.0.7680.32). Please rebase.

@github-actions github-actions bot added the chromium-version-mismatch The Chromium version on the PR branch does not match the version on the target branch label Feb 26, 2026
@github-actions github-actions bot removed the chromium-version-mismatch The Chromium version on the PR branch does not match the version on the target branch label Feb 26, 2026
Copy link
Collaborator

@atuchin-m atuchin-m left a comment

Choose a reason for hiding this comment

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

LGTM with a few nits about const&:
Let's go though all local vars in the diff and add const& where it's possible.

Introduces a NameTable for interning publisher IDs and channel names,
replacing string comparisons with integer comparisons during feed
generation. Publisher-to-channel mappings are computed once and reused.
@zenparsing zenparsing merged commit 3621e1b into master Feb 27, 2026
22 checks passed
@zenparsing zenparsing deleted the ksmith-news-perf-3 branch February 27, 2026 19:15
@github-actions github-actions bot added this to the 1.89.x - Nightly milestone Feb 27, 2026
@brave-builds
Copy link
Collaborator

Released in v1.89.86

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.

4 participants