Skip to content

Warmfix/change decoder cacheing#1842

Merged
thewhaleking merged 1 commit intostagingfrom
warmfix/change-decoder-cacheing
May 6, 2024
Merged

Warmfix/change decoder cacheing#1842
thewhaleking merged 1 commit intostagingfrom
warmfix/change-decoder-cacheing

Conversation

@thewhaleking
Copy link
Copy Markdown
Contributor

Changes the cacheing for the previously implemented get_decoder_class in #1834. While it was probably safe to do this, there are a handful of edge case scenarios in the overall configuration we may have overlooked. By changing the cached method convert_type_string, we avoid the potential edge cases that may result in serious issues down the line.

When submitting JAMdotTech/py-scale-codec#117, I discovered these. The utilisation of the type_registry means that we should not cache this method.

By cacheing convert_type_string, we ensure we do not accidentally run into any of these issues, though it does bring our speed improvements down by roughly ⅓ 😞

Changes the cacheing for the previously implemented get_decoder_class. While it was probably safe to do this, there are a handful of edge case scenarios in the overall configuration we may have overlooked. By changing the cached method convert_type_string, we avoid the potential edge cases that may result in serious issues down the line.
@thewhaleking thewhaleking changed the base branch from master to staging May 5, 2024 14:05
@thewhaleking thewhaleking marked this pull request as ready for review May 6, 2024 17:17
@thewhaleking thewhaleking merged commit 7dd819d into staging May 6, 2024
@thewhaleking thewhaleking deleted the warmfix/change-decoder-cacheing branch May 6, 2024 17:17
@thealligatorking thealligatorking mentioned this pull request May 17, 2024
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.

2 participants