-
Notifications
You must be signed in to change notification settings - Fork 138
Description
Hi,
Not sure I misread the setup but there are generally two main categories of implementations out there:
- byte based ones
- char based ones
Indeed it depends several things and even if byte based ones are supposed to be faster, char based ones are generally relevant when the chain uses char based objects (reader/writers in servlet api for ex) and delegate the char->byte handling to some backbone like servlet container to not worry about the impl details or similarly in the case of files.
The issue with current setup is that depending the provider it uses either bytes based inputs/outputs, or some not optimal converters including StringBuilder or plain String method shortcuts. So overall we can't compare the same chain between providers nor pick the performances aligned with our app use case easily (the switch can >> x2 or /2 the perf).
So overall it can be worth testing the different flavors and even using the impl shortcuts when possible which enables to provide directly a char[] to the json parser or equivalent when relevant.
Romain