Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 05-06-2003
JohnBates JohnBates is offline
Registered User
 
 
Join Date: May 2003
Posts: 2
Method tokens: strings vs. indices

I see from the generated c++ code that Ice appears to send the string name of a method accross the wire to invoke it. Is there a reason you're not using integer indices instead? (To save network bandwidth and allow the possibility of constant time look-up of methods.)

Thanks,
John
Reply With Quote
  #2 (permalink)  
Old 05-06-2003
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,771
Using strings is more tolerant with respect to changes in the interfaces. It is also easier for debugging. For example, a router wouldn't know how to associate operation indexes with operation names, and therfore couldn't print any meaningful debug information.

The overhead for strings as operation names is rather small. Usually the payload of a request dominates the transmission size, not the operation name. And the lookup is done with a sorted table, so this is not a bottleneck either.
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
NoObjectFactoryException for method-less class borax00 Help Center 7 07-20-2006 05:07 AM
No ice_collocationOptimization method in python wgwolf Help Center 5 12-06-2005 01:40 PM
win32/ question on passing and returning strings stephan Help Center 2 01-04-2004 02:49 PM


All times are GMT -4. The time now is 07:04 PM.


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