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

Improve CRC calculation performance #2

Open
Pommaq opened this issue Aug 29, 2021 · 0 comments
Open

Improve CRC calculation performance #2

Pommaq opened this issue Aug 29, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Pommaq
Copy link
Owner

Pommaq commented Aug 29, 2021

Currently a ton of time is spent on calculating crcs, even if nothing in the message has changed.
We can optimize this by caching the result of the crc inside the class, and letting the cache be invalidated whenever the message is written to, for example by overloading [] operator.

@Pommaq Pommaq added enhancement New feature or request good first issue Good for newcomers labels Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant