summaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2020-10-02 14:34:44 +0200
committerMartin Polden <mpolden@mpolden.no>2020-10-02 14:34:44 +0200
commit58c464422049066d6908b9bcba1ebdf20e9c76a2 (patch)
treedc0bc4a2d79865aca1e4aed2d4b4e68a7357739d /staging_vespalib
parent9c1cda0715260283b6a21081dc286ef86e3ab7b9 (diff)
Remove custom Utf8.toString implementation
`String::new` is now faster for both ASCII and Unicode strings: ``` Utf8::toString of ascii string took 132 ms String::new of ascii string took 59 ms Change = -55.30% Utf8::toString of unicode string took 410 ms String::new of unicode string took 280 ms Change = -31.71% ``` There's at least two reasons for this: * Java 9 introduced compact strings, which means that `String` is now backed by a byte array to reduce the memory footprint of ASCII strings. * Detection of Unicode strings may use HotSpot intrinsics.
Diffstat (limited to 'staging_vespalib')
0 files changed, 0 insertions, 0 deletions