-
Notifications
You must be signed in to change notification settings - Fork 184
ENH: derive from C-pickler for fast serialization #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 56 commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
8e75654
MNT use the is_dynamic for both classes and functions
pierreglaser 51df1aa
FIX fix is_dynamic for some builtin packages in pypy
pierreglaser b89b259
FIX python2-3 compat
pierreglaser 161924b
ENH extend _pickle.Pickler
pierreglaser 7da9aaf
MNT load cloudpickle_fast for recent (>3.8) python
pierreglaser d44fd1e
MNT remove test_namedtuple skip after cpython changes
pierreglaser daee859
MNT add cloudpickle's code_globals_cache
pierreglaser c44f75b
CLN comment cosmetics
pierreglaser 7aae29b
MNT remove python2-compat lines from file_reduce
pierreglaser ec461ab
CLN various style/cosmetics
pierreglaser e75f466
MNT re-use builtin-type constructor cache
pierreglaser 7e311ae
DOC explain why warnings are filtered in tests
pierreglaser 009e4a2
TST silent deprecation warning in some tests
pierreglaser c28d156
CI test cloudpickle against python3.8 with hooks
pierreglaser dfea4f5
CLN de-duplicate utility functions
pierreglaser 3df299f
CLN de-duplicate complex utilities functions
pierreglaser 78dd8c7
TST fix test for cloudpickle <= 3.7
pierreglaser c364505
DOC more explicit save_global fallback comment
pierreglaser de67530
CLN make reducers private
pierreglaser eb77646
MNT backport 0.8.1 patch into cludpickle_fast
pierreglaser 1dea4ab
CLN unused imports
pierreglaser 10afbe8
CLN naming (subimports -> submodules)
pierreglaser df3b5a2
CLN handle the file in a context manager
pierreglaser e3344b0
CLN hide slotstate (possible implementation detail)
pierreglaser 749e88b
CLN make extract_code_globals private
pierreglaser 09c38cd
CLN cleanup stale comments
pierreglaser 3151fc4
CLN is_metaclass -> is_anyclass
pierreglaser cac49e4
CLN docstrings conventions
pierreglaser c9402e9
CLN explain cloudpickle global_hook use_case
pierreglaser 841f33f
MNT better compat with early python3.8 versions
pierreglaser ea21d06
CLN stale comments
pierreglaser 0145a1c
MNT update to comply cpython PR changes
pierreglaser 0aba017
MNT use the new pickler subclassing API
pierreglaser 707ec29
MNT update to recent changes in master
pierreglaser b92ac58
CLN cleanups
pierreglaser 920949e
[ci python-nightly] fix coverage failure
pierreglaser 54e7341
[ci python-nightly] fix coverage failure (2)
pierreglaser 2357fa4
[ci python-nightly] fix coverage failure (3)
pierreglaser d753cdf
[ci python-nightly] fix coverage failure (4)
pierreglaser d79c3a9
CI re-enable windows builds
pierreglaser 8db031a
CLN duplicated code
pierreglaser 6e70c2d
MNT rebasing mistakes
pierreglaser e439f7a
CLN make some reducers CloudPickler methods
pierreglaser 0bdb4bc
CI test python3.8-dev version
pierreglaser ac1d05c
CI test against python nighlty on every commit
pierreglaser 968f769
MNT DOC explain WeakKeyDictionary guard in PyPy
pierreglaser db8b2c5
FIX pre-populate dispatch with copyreg_dispatch_table
pierreglaser c276d83
FIX more robust alternative + comments
pierreglaser c50339b
MAINT add numpy master to python nightly ci
ogrisel 4c3c05f
Fix equality test?
ogrisel a712557
Remove comment that breaks yaml parsing
ogrisel 5f6defe
CLN rebase with #278
pierreglaser a3bb79a
Update cloudpickle/cloudpickle_fast.py
pierreglaser e90d45d
DOC better reducer_override comment
pierreglaser 3b87904
DOC, CLN clearer comments and names
pierreglaser 042e8e4
DOC better find_imported_submodules docstring
pierreglaser 71f3c09
TST test reference cycle error
pierreglaser 8219e37
CLN cleaner __init__
pierreglaser b4a8bdf
MNT drop support for 3.8 alpha releases
pierreglaser 3db1d3d
TST cross-version recursion test
pierreglaser 8be8e72
FIX fix spurious debugging attempts
pierreglaser 3290de2
CLN drop old save_subimport method in cloudpickle
pierreglaser 1419073
MNT changelog
pierreglaser e9425ce
CLN remove PyPy-specific code in cloudpickle_fast
pierreglaser 80246a9
CLN fix flake8 complains
pierreglaser 4275d10
CLN clearer doc
pierreglaser 853bd31
CLN cosmetics
pierreglaser 021a6b1
CLN cosmetics (2)
pierreglaser f27427a
CLN stale comment
pierreglaser 21726eb
typo
ogrisel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,12 @@ | ||
| from __future__ import absolute_import | ||
|
|
||
| from cloudpickle.cloudpickle import * | ||
| import sys | ||
| import pickle | ||
|
|
||
|
|
||
| if sys.version_info[:2] >= (3, 8): | ||
| from cloudpickle.cloudpickle_fast import * | ||
| else: | ||
| from cloudpickle.cloudpickle import * | ||
pierreglaser marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| __version__ = '1.2.0.dev0' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.