Introduce flag to use pickle for serialization (#5805)

This commit is contained in:
Philipp Moritz
2019-10-18 22:29:36 -07:00
committed by GitHub
parent 29eee7f970
commit d23696de17
9 changed files with 85 additions and 22 deletions
+1 -6
View File
@@ -1,12 +1,7 @@
from __future__ import absolute_import
import sys
# TODO(suquark): This is a temporary flag for
# the new serialization implementation.
# Remove it when the old one is deprecated.
USE_NEW_SERIALIZER = False
if USE_NEW_SERIALIZER and sys.version_info[:2] >= (3, 8):
if sys.version_info[:2] >= (3, 8):
from ray.cloudpickle.cloudpickle_fast import *
FAST_CLOUDPICKLE_USED = True
else: