Skip to content

Various cleanups for String operations#8050

Merged
headius merged 3 commits intojruby:masterfrom
headius:small_tweaks
Dec 22, 2023
Merged

Various cleanups for String operations#8050
headius merged 3 commits intojruby:masterfrom
headius:small_tweaks

Conversation

@headius
Copy link
Member

@headius headius commented Dec 21, 2023

A few cleanups I ran into while poking around RubyString.

* Consolidate deprecated forms
* Access runtime outside of loop
@headius headius force-pushed the small_tweaks branch 2 times, most recently from 7759bcd to 60b4d48 Compare December 21, 2023 22:12
This led to a few other things getting split, plus a lambda form
that avoids the temporary string carrier array.
This kill four arrays used to carry encoding information back to
the caller. The logic is simple enough we don't need to call out.

This leaves the original strTranscodeEncArgs method without any
users, but it is a public API we can't eliminate without
deprecation.
@headius headius marked this pull request as ready for review December 22, 2023 18:14
@headius headius merged commit 234e88b into jruby:master Dec 22, 2023
@headius headius deleted the small_tweaks branch December 22, 2023 18:14
@enebo enebo added this to the JRuby 9.4.6.0 milestone Feb 16, 2024
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.

2 participants