mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-31 08:34:43 +08:00
Change Parso to use cPickle instead of pickle when reading/writing the cache, which speeds up the cache significantly. In Python 2, cPickle is up to 1000 times faster than pickle. (In Python 3, if you "import pickle", you are actually getting cPickle.) As is the convention, the code tries to import cPickle, and if that fails, it falls back to pickle. This has a big impact for users of jedi-vim, since in many cases Vim uses Python 2.