Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r26391 | jim | 2004-07-10 08:47:23 -0400 (Sat, 10 Jul 2004) | 6 lines Added caching of the adapter_hook method used for simple adapter lookup. This provides about a 10% speedup in my test case and should simplify debugging a little bit.
- Loading branch information
Jim Fulton
committed
Jul 10, 2004
1 parent
9adb59f
commit e464d72
Showing
2 changed files
with
111 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<configure xmlns="http://namespaces.zope.org/zope"> | ||
|
||
<serviceType | ||
id="Utilities" | ||
interface="zope.component.interfaces.IUtilityService" /> | ||
|
||
<service | ||
serviceType="Utilities" | ||
permission="zope.Public" | ||
factory="zope.component.utility.GlobalUtilityService" /> | ||
|
||
<serviceType | ||
id="Adapters" | ||
interface="zope.component.interfaces.IAdapterService" /> | ||
|
||
<service | ||
serviceType="Adapters" | ||
permission="zope.Public" | ||
factory="zope.component.adapter.GlobalAdapterService" /> | ||
|
||
<serviceType | ||
id="Presentation" | ||
interface="zope.component.interfaces.IPresentationService" /> | ||
|
||
<service | ||
serviceType="Presentation" | ||
permission="zope.Public" | ||
factory="zope.component.presentation.GlobalPresentationService" /> | ||
|
||
<vocabulary | ||
name="Interfaces" | ||
factory="zope.app.utility.vocabulary.UtilityVocabulary" | ||
interface="zope.interface.interfaces.IInterface" /> | ||
|
||
<hook | ||
module="zope.component" | ||
name="getServices" | ||
implementation="zope.app.component.hooks.getServices_hook" /> | ||
|
||
<hook | ||
module="zope.component" | ||
name="adapter_hook" | ||
implementation="zope.app.component.hooks.adapter_hook" /> | ||
|
||
<hook | ||
module="zope.component" | ||
name="queryView" | ||
implementation="zope.app.component.hooks.queryView" /> | ||
|
||
<interface interface="zope.interface.Interface" /> | ||
|
||
<adapter | ||
factory=".localservice.serviceServiceAdapter" | ||
provides="zope.component.IServiceService" | ||
for="zope.interface.Interface" /> | ||
|
||
<subscriber | ||
factory=".localservice.threadSiteSubscriber" | ||
for="zope.app.publication.interfaces.IBeforeTraverseEvent" | ||
/> | ||
|
||
<subscriber | ||
factory=".localservice.clearThreadSiteSubscriber" | ||
for="zope.app.publication.interfaces.IEndRequestEvent" | ||
/> | ||
|
||
</configure> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters