Skip to content

Make the env an Env record and read the tag class at analysis - #1144

Merged
borkdude merged 2 commits into
masterfrom
interop-tag-class
Nov 21, 2026
Merged

borkdude merged 2 commits into
masterfrom
interop-tag-class

Conversation

@borkdude

Copy link
Copy Markdown
Collaborator

Instance interop did two map lookups per call on a cache hit:

  • (:tag-class (meta instance-expr)), now read once at analysis and passed to eval-instance-method-invocation.
  • (:class->opts env), a hash map lookup. The env started as {}, so the Env record was never built. init-env! now converts the env to an Env, and class->opts is a field.

The nil env branch in init-env! was unreachable and is removed.

Native bb, honeysql format in a loop, two builds per side, interleaved, best of 3:

workload master branch
complex query, 5k 1331 ms 1257 ms (-5.6%)
simple query, 50k 2024 ms 1967 ms (-2.8%)

@borkdude
borkdude merged commit be4048e into master Nov 21, 2026
13 checks passed
@borkdude
borkdude deleted the interop-tag-class branch November 21, 2026 09:58
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.

1 participant