-
Notifications
You must be signed in to change notification settings - Fork 282
Description
The DeterministicCache class currently uses whatever pickle protocol the local python installation sets. For python 2.x, it's version 2 and for python 3.x it's 3.
A suggestion was made that we could specify the version to use so that it's consistent everywhere.
The only benefit I can see is that this would simplify our test code which currently has to derive the python version and set the expected pickle output accordingly.
The downside would be that, in order to be generic, we would have to specify the lowest common denominator (protocol version 2). The later versions were introduced for good reason, one of them being speed, and that's exactly what our cache is intended to improve.
My opinion for the moment is that we should leave it as is - but am I missing something where it might be of further benefit?