Skip to content

Use cached UTF8 single-char bytelists here#6700

Merged
headius merged 1 commit intojruby:jruby-9.2from
headius:more_singlechar_bytelists
Jun 5, 2021
Merged

Use cached UTF8 single-char bytelists here#6700
headius merged 1 commit intojruby:jruby-9.2from
headius:more_singlechar_bytelists

Conversation

@headius
Copy link
Member

@headius headius commented Jun 3, 2021

This logic would always create a new byte[], ByteList, and
RubyString when pulling single-byte characters from a multi-byte
string. This change allows it to use cached ByteList (and byte[])
for those cases if the encoding is UTF-8.

@headius headius added this to the JRuby 9.2.18.0 milestone Jun 3, 2021
@headius headius force-pushed the more_singlechar_bytelists branch from dee8c82 to 1a1ff85 Compare June 3, 2021 23:56
@headius headius changed the base branch from master to jruby-9.2 June 3, 2021 23:59
@headius headius force-pushed the more_singlechar_bytelists branch 3 times, most recently from fb0271d to 8b84829 Compare June 4, 2021 21:26
This logic would always create a new byte[], ByteList, and
RubyString when pulling single-byte characters from a multi-byte
string. This change allows it to use cached ByteList (and byte[])
for those cases if the encoding is UTF-8.
@headius headius force-pushed the more_singlechar_bytelists branch from 8b84829 to d84d63f Compare June 5, 2021 00:18
@headius headius merged commit d12635b into jruby:jruby-9.2 Jun 5, 2021
@headius headius deleted the more_singlechar_bytelists branch June 5, 2021 01:16
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