Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-29-2008
tctimmeh tctimmeh is offline
Registered User
 
Name: Tim Court
Organization: Enbridge Pipelines
Project: IPC replacement
 
Join Date: Dec 2007
Posts: 19
Proxy Colocation Optimization

I think I'm having some trouble understanding when Ice chooses to use colocation optimization for proxies. I've created a quick sample program to test it:

Code:
class Test(Ice.Locator):
  def findAdapterById_async(self, cb, id, current = None):
    cb.ice_response(None)

id = Ice.stringToIdentity('blah')
c = Ice.initialize(sys.argv)
oa = c.createObjectAdapterWithEndpoints('test', 'tcp -h localhost')
oa.add(Test(), id)
oa.activate()
prx = oa.createDirectProxy(id)
prx = Ice.LocatorPrx.checkedCast(prx)
When I run this with Ice.Trace.Network=2 it shows a tcp connection being made to the Object Adapter. I thought it wouldn't do this since I'm using a direct proxy that refers to an adapter in my own process. Is this not correct?
Reply With Quote
  #2 (permalink)  
Old 02-29-2008
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 976
Hi Tim,

Ice would use collocation optimization in your example if you were using C++, Java, or .NET, but collocation optimization is not currently supported in Python. It's not a limitation of the Ice extension, but rather a limitation in the Ice run time. Changing this situation is on our TODO list, but it's not a high priority at present.

Take care,
Mark
Reply With Quote
  #3 (permalink)  
Old 09-03-2008
aronnax aronnax is offline
Registered User
 
Name: Leo Singer
Organization: University of Maryland
Project: Autonomous underwater vehicle AI
 
Join Date: Sep 2008
Posts: 3
To what extent can collocation optimization be applied to IceStorm? Is there a way for me to fire up the topic manager programmatically from C++, so that it lives on the same communicator as my servant classes that do most of the publishing?
Reply With Quote
  #4 (permalink)  
Old 09-03-2008
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,088
At present IceStorm cannot use the collocation optimization because it uses the Blobject interface internally, which does not support collocation optimized calls.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
collocation optimization per object jli125 Help Center 1 07-11-2007 12:12 AM
AMD Collocation Optimization bpolivka Patches 1 03-19-2007 03:17 PM
Collocation Optimization with IcePack: a bug? zanza Bug Reports 1 07-01-2005 06:48 AM
Optimization for WIN32 hellocyf Comments 3 06-22-2004 11:54 PM
Is it possible to disable Collocation Optimization? galbe Help Center 3 11-05-2003 12:29 PM


All times are GMT -4. The time now is 12:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.