Skip to content

Commit 14fc19f

Browse files
committed
Call NativeRope#get() directly in GetByteNode
* Which is actually not slow but the regular read for native ropes. (cherry picked from commit 8dae143)
1 parent 329cbd6 commit 14fc19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/core/rope/RopeNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ protected int getByte(Rope rope, int index) {
11191119

11201120
@Specialization(guards = "rope.getRawBytes() == null")
11211121
protected int getByte(NativeRope rope, int index) {
1122-
return rope.getByteSlow(index) & 0xff;
1122+
return rope.get(index) & 0xff;
11231123
}
11241124

11251125
@Specialization(guards = "rope.getRawBytes() == null")

0 commit comments

Comments
 (0)