🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8852

Re: zip/unzip API?

#8852
From: Eelke Klein
Date: Fri, 10 Sep 2004 10:30
26 lines
1779 bytes
Hans Galema wrote:
> Smitty wrote:
> 
>>     I want to zip a big string in momery,then send the string to a 
>> client,then unzip it.
> 
> 
> That is exactly what I do using Bzip2. See:
> 
> http://sources.redhat.com/bzip2/
> 
> You are not telling why you want to zip/unzip. If client and
> server are in the same 100MB network then zipping/unzipping will not
> be faster then sending uncompressed. When using a -slow- internet
> connection, then yes, that brings speed.
> 
> You only have to use a small piece of the downloadable code as
> lots of code is about using and managing files and archives.
zlib is another option

http://www.gzip.org/zlib/

Compaired with bzip2 it offers slightly less compression but with the 
benefit of a much higher speed.

Eelke
Technical Details
Message-ID: <41418217$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41414b55$1@newsgroups.borland.com> <41417b20$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ee9fba418de6df33
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 10 Sep 2004 12:30:00 +0200
From: Eelke Klein <e.klein@mplussoftware.nl>
User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: zip/unzip API?
References: <41414b55$1@newsgroups.borland.com> <41417b20$1@newsgroups.borland.com>
In-Reply-To: <41417b20$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.58.1.162
Message-ID: <41418217$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1094812183 81.58.1.162 (10 Sep 2004 03:29:43 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail