Replace random class_tracker_id with sequential integer.#568
Replace random class_tracker_id with sequential integer.#568aebrahim wants to merge 1 commit intocloudpipe:masterfrom
Conversation
We keep the same 32 digit string hexadecimal format. Fixes cloudpipe#510. Relevant to cloudpipe#453 and apache/beam#21298
|
Hi @aebrahim , this approach leads to errors in Apache Beam. For example, in Apache beam
During step (1) some user defined type will claim the tracking id 1 |
|
Got it, so the approach taken needs to be some kind of deterministic hash? |
|
Yes. Perhaps there are ways to strike a balance here depending on the use case
|
|
Maybe dynamic classes could be pickled into a two stage process:
This has some overhead (because of redundant object graph handling and extra hash function calls), so maybe this should only be implemented via a dedicated option not enabled by default to avoid introducing a performance regression for existing cloudpickle users who do not need deterministic pickling. |
|
Related effort (to deal with the lack of determinism of |
We keep the same 32 digit string hexadecimal format.
Fixes #510.
Relevant to #453 and apache/beam#21298