Skip to content

Improve (de)serialization performance #37

@bal-e

Description

@bal-e

As per NLnetLabs/cascade#332, we've noticed that (de)serialization is surprisingly expensive. The problem here is kmip-ttlv's Serde implementation -- it performs a lot of backtracking and string parsing while consuming requests. Rather than completely overhauling that library, it may be preferable to replace it with a local module.

  • Add simple benchmarks to measure the difference
  • Implement a manual fast-path deserializer
  • Implement a manual serializer
  • Implement a manual slow-path deserializer
  • Implement (randomized) tests

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions