Mercurial > babel > old > mirror
changeset 551:632b2338e6dd
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)
author | fschwarz |
---|---|
date | Sun, 20 Mar 2011 06:01:11 +0000 |
parents | 3c306c1f842f |
children | 19965213e0ed |
files | ChangeLog babel/core.py babel/localedata.py scripts/dump_global.py scripts/import_cldr.py |
diffstat | 5 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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
--- 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:
--- 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
--- 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: