Commits

Felix Schwarz committed a79df3a

use cPickle instead of pickle for better performance (fixes #225)

import_cldr on my system was about 20% faster with this patch (13.9 sec vs. 16.9 sec)

  • Participants
  • Parent commits eee54e7

Comments (0)

Files changed (5)

  * Fix so frontend.CommandLineInterface.run does not accumulate logging 
    handlers (#227, reported with initial patch by dfraser)
  * Fix exception if environment contains an invalid locale setting (#200)
+ * use cPickle instead of pickle for better performance (#225)
 
 
 Version 0.9.6

File babel/core.py

 """Core locale representation and locale data access."""
 
 import os
-import pickle
+import cPickle as pickle
 
 from babel import localedata
 

File babel/localedata.py

 """
 
 import os
-import pickle
+import cPickle as pickle
 try:
     import threading
 except ImportError:

File scripts/dump_global.py

 # individuals. For the exact contribution history, see the revision
 # history and logs, available at http://babel.edgewall.org/log/.
 
+import cPickle as pickle
 import os
-import pickle
 from pprint import pprint
 import sys
 

File scripts/import_cldr.py

 # individuals. For the exact contribution history, see the revision
 # history and logs, available at http://babel.edgewall.org/log/.
 
+import cPickle as pickle
 from optparse import OptionParser
 import os
-import pickle
 import re
 import sys
 try: