lifeinwild
lifeinwild
on mac. 1. launch profiler like visualvm. 2. launch sdk. 3. connect profiler to sdk, and start cpu sampler. 4. open any context menu on sdk. the security warning occure....
ArrayClassResolver vs DefaultClassResolver in existing benchmarks and a new benchmark deserializeCollection(). the benchmark of deserializeCollection() means the benchmark where new module is good as mentioned above. I said 17%, but...
I confirmed a very funny behavior about DefaultClassResolver. When kryo deserialize a Map, the order is a key, a value, a key, a value over and over. By the way,...
There are a few cases where DefaultClassResolver beats ArrayClassResolver. I imagine that it is when the cache system works effectively. If I implement memoizedClass cache system in ArrayClassResolver, ArrayClassResolver will...
I compared again with the memoizedClass version about all the cases ArrayClassResolver lost. It reversed in almost all but one case. There may be a new case of losing. I...
I did more benchmarking. In most cases, ArrayClassResolver wins, but sometimes loses due to measurement errors. Even in the worst benchmarks, ArrayClassResolver has about 50% chance of beating DefaultClassResolver. Another...
Now the risk of reconstructing array is same of standard classes such as HashMap. And the performance is balanced. win: 21/29 draw: 5/29 lose: 3/29 highest:+14% lowest:-3% ave:+3.55% ``` ArrayClassResolverBenchmark.compatible...
The cache code of DefaultClassResolver don't work in ser/der of Map that has different classes for its key and value. You don't understand it maybe. It is important because huge...