Closed goredar closed 4 years ago
Hi Vitaliy,
Thanks for your contribution. Your solution works well!
The only drawback is that the sorting will slow down the make_key
function a little bit (~10%). Since it is not a common practice to call a function multiple times with its kwargs
in different order, I will add an option to the @cached
decorator so that users can decide whether they need this feature.
Cheers!
Thanks a lot!
Hi, there.
Currently, there is a cache miss when the order of function kwargs is not preserved during several calls. Tried to fix this behavior.
Looking forward to your reply.