[Python-checkins] r81787 - python/branches/py3k-cdecimal/setup.py
stefan.krah
python-checkins at python.org
Sun Jun 6 13:45:18 CEST 2010
Author: stefan.krah
Date: Sun Jun 6 13:45:17 2010
New Revision: 81787
Log:
New default: use thread local contexts.
Modified:
python/branches/py3k-cdecimal/setup.py
Modified: python/branches/py3k-cdecimal/setup.py
==============================================================================
--- python/branches/py3k-cdecimal/setup.py (original)
+++ python/branches/py3k-cdecimal/setup.py Sun Jun 6 13:45:17 2010
@@ -1662,8 +1662,8 @@
define_macros.append(('ANSI', '1'))
else:
raise DistutilsError("cdecimal: unsupported architecture")
- # Not recommended: TLS is very slow!
- # define_macros.append(('USE_THREAD_LOCAL_STORAGE', 1))
+ # Faster version without thread local contexts:
+ # define_macros.append(('WITHOUT_THREADS', 1))
if 'sunos' in platform and cc == 'cc': # suncc
extra_compile_args.extend(['-erroff=E_ARGUEMENT_MISMATCH'])
ext = Extension (
More information about the Python-checkins
mailing list