Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Improved performance of hexString to data init. #229

Merged
merged 2 commits into from
Oct 21, 2019
Merged

Improved performance of hexString to data init. #229

merged 2 commits into from
Oct 21, 2019

Conversation

mjohnson12
Copy link
Contributor

This PR highlighted an issue with hexString to Data parsing performance.
#207
I timed the large example hex string from that PR in a unit test and it took 56 seconds to parse.
With the changes in this PR parsing the same string took 0.005 of a second to parse.

@opi-smccoole
Copy link
Contributor

Looks good to me, nice work! Should we put in a unit test with a larger hex string decode and a timed expectation/wait to validate?

Copy link
Contributor

@opi-smccoole opi-smccoole left a comment

Choose a reason for hiding this comment

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

Looks good! See question on possible unit test addition.

@mjohnson12
Copy link
Contributor Author

Looks good to me, nice work! Should we put in a unit test with a larger hex string decode and a timed expectation/wait to validate?

I've added a larger hex string unit test.

@mjohnson12 mjohnson12 merged commit 2ded98d into develop Oct 21, 2019
@mjohnson12 mjohnson12 deleted the base16 branch October 21, 2019 21:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants