RFR: 8151098: Introduce multi-slot per-thread cache for StringDecoders/Encoders
2 Mar
2016
2 Mar
'16
10:07 p.m.
Hi all, We discussed this change in a previous e-mail thread. Here’s a patch for your consideration: http://cr.openjdk.java.net/~tonyp/8151098/webrev.1/ I cloned the Cache class from ThreadLocalCoders and reworked it a bit. The StringDecoder and StringEncoder classes had some common fields (the Charset and the requested charset name). I moved them to a superclass (StringCoder) which made the cache easier to write (I didn’t have to create one subclass for the decoder and one for the encoder, as it is the case in ThreadLocalCoders). Feedback very welcome! Tony ----- Tony Printezis | JVM/GC Engineer / VM Team | Twitter @TonyPrintezis tprintezis@twitter.com
3660
Age (days ago)
3660
Last active (days ago)
0 comments
1 participants
participants (1)
-
Tony Printezis