~jbaker/storm/nose_plugin

« back to all changes in this revision

Viewing changes to storm/zope/zstorm.py

  • Committer: Gustavo Niemeyer
  • Date: 2008-06-26 11:57:22 UTC
  • mfrom: (235.2.24 need-for-speed-revenge)
  • Revision ID: gustavo@niemeyer.net-20080626115722-ekl4af6sx2pn08d0
Merging need-for-speed-revenge branch [a=niemeyer,jamesh,radix]
[r=jamesh,therve]

This branch introduces a number of fixes, optimizations, and extensions
on the cextensions module, with speedup purposes.  The module is now
built by default, but still disabled unless the STORM_CEXTENSIONS=1
environment variable is defined.

Besides these, Chris also provided a mechanism to cache ClassAliases,
to prevent the cost of rebuilding the ClassInfo for each alias.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
        try:
88
88
            return self._local.named
89
89
        except AttributeError:
90
 
            return self._local.__dict__.setdefault(
91
 
                "named", {})
 
90
            return self._local.__dict__.setdefault("named", {})
92
91
 
93
92
    @property
94
93
    def _name_index(self):