Closed elichai closed 5 years ago
@elichai Is the serde_json necessary? what is his purpose? @gbenattar can I merge?
It's used in the tests so I moved it from the dependencies to the dev-dependencies
got it, thanks. @gbenattar waiting for your ok
I am approving this PR given the following pre-condition:
This resolves #44
Before this for every multiplication you created the context. which is a very hungry operation (cpu, memory etc).
Instead we're creating a context only once and keep using that. this context is thread safe. you can pass it around however you want. the only constraint are:
There is no promise about the exact memory size and representation, meaning that you cannot save it to disk and reload later. no one should try and modify it's memory(not a problem in rust)