ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "steve.hostettler@gmail.com" <steve.hostett...@gmail.com>
Subject Ignite and Java 9+
Date Tue, 02 Jun 2020 08:37:45 GMT

The method doWriteString(@Nullable String val) writes everything in UTF-8.
This is a bit a waste because with  Java 9+
<https://openjdk.java.net/jeps/254>  , strings are optimised and if all
chars are ISO-LATIN-1 all char are represented with 1 byte instead of two. I
would consider creating 2 type of strings : One with type 0x9 that behaves
as it does currently and another  0x39 that checks that s.getBytes().length
== s.length()

what do you think?

Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/

View raw message