Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom park and serialize without creating a new serializer #314

Merged
merged 8 commits into from Oct 28, 2018

Conversation

blsemo
Copy link
Contributor

@blsemo blsemo commented Sep 13, 2018

Corda uses parkAndSerialize with a custom FiberWriter that takes it serializer from a pool of pre-created serializers - hence it does not use the Kryo serializer that parkAndSerialize() creates for every single call.
Profiling has shown that creating a Kryo serializer has a non-trivial cost in terms of CPU cycles, and as it does not get used in our case, this effort is completely wasted. Therefore, I have created a small patch that allows to parkAndSerialize with a custom writer without creating a new serializer.

@pron pron merged commit 7a2dfab into puniverse:master Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants