Skip to content

Consistently use regular inheritance in StarlarkInt#28079

Open
fmeum wants to merge 1 commit intobazelbuild:masterfrom
fmeum:optimize-starlark-int
Open

Consistently use regular inheritance in StarlarkInt#28079
fmeum wants to merge 1 commit intobazelbuild:masterfrom
fmeum:optimize-starlark-int

Conversation

@fmeum
Copy link
Copy Markdown
Collaborator

@fmeum fmeum commented Dec 22, 2025

Previously this class mixed regular method overrides with manual instanceof dispatch, which resulted in a number of redundant toBigInteger() calls and generally made it harder to follow the different cases.

Previously this class mixed regular method overrides with `instanceof` dispatch. Also seal the class hierarchy.
@fmeum fmeum marked this pull request as ready for review December 23, 2025 12:15
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Dec 23, 2025
@iancha1992 iancha1992 added team-Starlark-Interpreter Issues involving the Starlark interpreter used by Bazel team-Performance Issues for Performance teams labels Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Performance Issues for Performance teams team-Starlark-Interpreter Issues involving the Starlark interpreter used by Bazel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants