Skip to content

Optimize branch ordering of mpack_encode - #100

Merged
jcrist merged 1 commit into
masterfrom
optimize-branch-order-mpack_encode
Apr 22, 2022
Merged

Optimize branch ordering of mpack_encode#100
jcrist merged 1 commit into
masterfrom
optimize-branch-order-mpack_encode

Conversation

@jcrist

@jcrist jcrist commented Apr 22, 2022

Copy link
Copy Markdown
Member

Rearranges the branches in mpack_encode to put the most likely types
first (str, int, ...). This is a micro-optimization, but is easy to do.
Experiments show up to 5% speedup for tiny messages.

Rearranges the branches in ``mpack_encode`` to put the most likely types
first (str, int, ...). This is a micro-optimization, but is easy to do.
Experiments show up to 5% speedup for tiny messages.
@jcrist
jcrist merged commit 5b0ef38 into master Apr 22, 2022
@jcrist
jcrist deleted the optimize-branch-order-mpack_encode branch April 22, 2022 02:42
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