# HG changeset patch # User fschwarz # Date 1300600871 0 # Node ID 423bb50cb8af05bd013cd52fd67a4d11d6f203f0 # Parent 59db0f962e000e8fa07f3a1530c317782f92e823 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) diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -30,6 +30,7 @@ * 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 diff --git a/babel/core.py b/babel/core.py --- a/babel/core.py +++ b/babel/core.py @@ -14,7 +14,7 @@ """Core locale representation and locale data access.""" import os -import pickle +import cPickle as pickle from babel import localedata diff --git a/babel/localedata.py b/babel/localedata.py --- a/babel/localedata.py +++ b/babel/localedata.py @@ -18,7 +18,7 @@ """ import os -import pickle +import cPickle as pickle try: import threading except ImportError: diff --git a/scripts/dump_global.py b/scripts/dump_global.py --- a/scripts/dump_global.py +++ b/scripts/dump_global.py @@ -12,8 +12,8 @@ # 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 diff --git a/scripts/import_cldr.py b/scripts/import_cldr.py --- a/scripts/import_cldr.py +++ b/scripts/import_cldr.py @@ -12,9 +12,9 @@ # 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: