Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Float / Decimal Type Management in Cache #277

Open
StuartFarmer opened this issue Jan 29, 2020 · 0 comments
Open

Better Float / Decimal Type Management in Cache #277

StuartFarmer opened this issue Jan 29, 2020 · 0 comments

Comments

@StuartFarmer
Copy link
Contributor

Data is encoded to and from floating points deterministically if pulled from RocksDB. However, floats and decimals retain their Python object equivalent if they are in the cache.

Currently, there is a small shim that just checks if an object is a Decimal and casts it to a ContractingDecimal that is restricted and deterministic. This might not be the best way to do things.

Discuss alternatives later...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant