Mercurial > babel > old > babel-test
comparison babel/core.py @ 549:423bb50cb8af
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 | e8da49740876 |
children |
comparison
equal
deleted
inserted
replaced
548:59db0f962e00 | 549:423bb50cb8af |
---|---|
12 # history and logs, available at http://babel.edgewall.org/log/. | 12 # history and logs, available at http://babel.edgewall.org/log/. |
13 | 13 |
14 """Core locale representation and locale data access.""" | 14 """Core locale representation and locale data access.""" |
15 | 15 |
16 import os | 16 import os |
17 import pickle | 17 import cPickle as pickle |
18 | 18 |
19 from babel import localedata | 19 from babel import localedata |
20 | 20 |
21 __all__ = ['UnknownLocaleError', 'Locale', 'default_locale', 'negotiate_locale', | 21 __all__ = ['UnknownLocaleError', 'Locale', 'default_locale', 'negotiate_locale', |
22 'parse_locale'] | 22 'parse_locale'] |