[Checkins] SVN: zope.security/trunk/ Removed stack extraction in
newInteraction. When using eggs this is an
Jürgen Kartnaller
juergen at kartnaller.at
Fri Jun 15 05:23:08 EDT 2007
Log message for revision 76706:
Removed stack extraction in newInteraction. When using eggs this is an
extremly expensive function. The publisher is now more than 10 times faster
when using eggs and about twice as fast with a zope trunk checkout.
Changed:
U zope.security/trunk/CHANGES.txt
U zope.security/trunk/src/zope/security/management.py
-=-
Modified: zope.security/trunk/CHANGES.txt
===================================================================
--- zope.security/trunk/CHANGES.txt 2007-06-15 07:16:32 UTC (rev 76705)
+++ zope.security/trunk/CHANGES.txt 2007-06-15 09:23:06 UTC (rev 76706)
@@ -1,6 +1,14 @@
zope.security package changelog
===============================
+3.4.0b2 - 2007/06/15
+--------------------
+
+- removed stack extraction in newInteraction. When using eggs this is an
+ extremly expensive function. The publisher is now more than 10 times faster
+ when using eggs and about twice as fast with a zope trunk checkout.
+
+
3.4.0b1
-------
Modified: zope.security/trunk/src/zope/security/management.py
===================================================================
--- zope.security/trunk/src/zope/security/management.py 2007-06-15 07:16:32 UTC (rev 76705)
+++ zope.security/trunk/src/zope/security/management.py 2007-06-15 09:23:06 UTC (rev 76706)
@@ -86,17 +86,13 @@
def newInteraction(*participations):
"""Start a new interaction."""
-
-
+
if queryInteraction() is not None:
- stack = queryInteraction()._newInteraction_called_from
raise AssertionError("newInteraction called"
- " while another interaction is active:\n%s"
- % "".join(traceback.format_list(stack)))
+ " while another interaction is active.")
interaction = getSecurityPolicy()(*participations)
- interaction._newInteraction_called_from = traceback.extract_stack()
thread_local.interaction = interaction
def endInteraction():
More information about the Checkins
mailing list