Skip to content

Conversation

headius
Copy link
Member

@headius headius commented Aug 19, 2025

Work to improve compilation of pattern matching, with an eye to reduce instruction count and bytecode size.

@headius headius added this to the JRuby 10.0.3.0 milestone Aug 19, 2025
@headius headius force-pushed the pattern_improvements branch 2 times, most recently from ff30385 to 61ba0fc Compare August 19, 2025 18:00
This splits RubyKernel.raise into separate paths for each arity, to
make calls from Java less cumbersome.
@headius headius force-pushed the pattern_improvements branch from 61ba0fc to e205cb2 Compare August 19, 2025 19:18
TypeError was being raised in various places by dynamically looking
for Kernel and TypeError and dyncalling `raise`, but we don't
really want any of that to be dynamic. Instead, just call `raise`
statically with cached Kernel and TypeError objects in hand.
@headius
Copy link
Member Author

headius commented Aug 19, 2025

Something not quite right in the typeError change... will revisit.

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