Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Unwrap the first dictionary access in fileBone:unserialize #151

Merged
merged 2 commits into from
Apr 2, 2019

Conversation

tsteinruecken
Copy link
Contributor

Replacement for #126

Copy link
Member

@sveneberth sveneberth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks okay for me but. But isn't it possible to cache the dict-values a little bit more?
For example currentValue["dest"] is used a lot of times.

@tsteinruecken
Copy link
Contributor Author

Hm.. I now unwrapped the ones in the lower blocks also. We could of course unwrap them in the upper block also, but we would trade 3 dictionary accesses for 1 dictionary access + one variable allocation. I doubt that this will be significantly faster...

@tsteinruecken tsteinruecken merged commit 55e4bb2 into develop Apr 2, 2019
@tsteinruecken tsteinruecken deleted the feature/fasterFileUnserializion branch April 2, 2019 08:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants