puniverse / quasar

Fibers, Channels and Actors for the JVM
http://docs.paralleluniverse.co/quasar/
Other
4.56k stars 575 forks source link

`getFiberSerializer` is slow #303

Open exFalso opened 6 years ago

exFalso commented 6 years ago

getFiberSerializer currently constructs the kryo instance every time parkAndSerialize is called, and unfortunately there's no way to get around this, even if that serializer is not required. As the call is quite slow this shows up as a hotspot during profiling. It should either be pooled or some functionality should be exposed to control whether to create it or not.