comparison scripts/import_cldr.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 bc5a9d30330a
children
comparison
equal deleted inserted replaced
548:59db0f962e00 549:423bb50cb8af
10 # 10 #
11 # This software consists of voluntary contributions made by many 11 # This software consists of voluntary contributions made by many
12 # individuals. For the exact contribution history, see the revision 12 # individuals. For the exact contribution history, see the revision
13 # history and logs, available at http://babel.edgewall.org/log/. 13 # history and logs, available at http://babel.edgewall.org/log/.
14 14
15 import cPickle as pickle
15 from optparse import OptionParser 16 from optparse import OptionParser
16 import os 17 import os
17 import pickle
18 import re 18 import re
19 import sys 19 import sys
20 try: 20 try:
21 from xml.etree.ElementTree import parse 21 from xml.etree.ElementTree import parse
22 except ImportError: 22 except ImportError:
Copyright (C) 2012-2017 Edgewall Software