Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-18-2005
stephan stephan is offline
Registered User
 
Name: Stephan Stapel
Organization: Stephan Stapel
Project: BristolNG
 
Join Date: Oct 2003
Location: Essen, Germany
Posts: 169
Compression question

Hi there,

I need to transfer rather large blocks of ascii data via Ice ( > 1.5 MB). As these ascii files are easily compressable (down to ~ 50 KB), I enabled compression but discovered that even in this case, the MemoryLimitException is thrown.

I was assuming that this exception would be thrown only if the data block that really is transfered is too big, not if the data block that is handed to Ice for marshalling (before compression etc.) is too big.

Is this behaviour desired? I know that I can increase the max message size, but would rather like to avoid this.

cheers,

Stephan
Reply With Quote
  #2 (permalink)  
Old 06-18-2005
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,781
Ice checks the message size during marshaling, and throws an exception as soon as the maximum size has been exceeded. So the maximum message size refers to the uncompressed message size. If we would want it to refer to the compressed message size, then we would first have to marshal all data regardless of size, then compress, and then compare the size.
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
Any benchmarks on using bzip2 compression? wobster Comments 4 09-19-2004 10:13 AM


All times are GMT -4. The time now is 02:09 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.