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

IGNITE-12555 .NET: Fix SerializableSerializer performance #7285

Merged
merged 5 commits into from
Jan 22, 2020

Conversation

ptupitsyn
Copy link
Contributor

Use cached binary metadata when possible: route all metadata through Marshaller, handle caching there.

Before the fix, we had a IBinaryProcessor.GetBinaryType call for every deserialized object that implements ISerializable, which caused huge performance drop, especially for thin client where every call is a network operation. The most common ISerializable type is DateTime.

Perf measurements:

  • GetAllEmployeesBenchmark +56%
  • ThinClientGetAllEmployeesBenchmark +2000%
  • GetBenchmark +30%
  • ThinClientGetBenchmark +20%

Use cached binary metadata when possible: route all metadata through `Marshaller`, handle caching there.

Before the fix, we had a `IBinaryProcessor.GetBinaryType` call for every deserialized object that implements `ISerializable`, which caused huge performance drop, especially for thin client where every call is a network operation. The most common `ISerializable` type is `DateTime`.

Perf measurements:
* `GetAllEmployeesBenchmark` +56%
* `ThinClientGetAllEmployeesBenchmark` +2000%
* `GetBenchmark` +30%
* `ThinClientGetBenchmark` +20%

(cherry picked from commit a4d69dc)
@ptupitsyn ptupitsyn self-assigned this Jan 21, 2020
@ptupitsyn ptupitsyn merged commit 274c443 into apache:master Jan 22, 2020
@ptupitsyn ptupitsyn deleted the ignite-12555 branch January 22, 2020 07:18
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.

1 participant