Has anyone done any performance studies on zlib?  Decompression is OK, but
compression is very, very CPU intensive.  I did a study a while back to
investigate using zlib for blobs.  The short answer is that it was much,
much faster to read the extra pages than pay for zlib compression and
decompression.

So, is the goal to reduce the size of network messages or improve overall
performance?

I think you would do much better on CPU and maybe half as good for size
using an overloaded, self-describing encoding.

On Friday, November 28, 2014, Vlad Khorsun <[email protected]> wrote:

>    Hi all.
>
>    Recently wire compression was implemented by Alex. It uses well known
> zlib
> library. On Linux zlib could be installed as a standalone package and there
> is no problems with its presence nor for Firebird users, nor for those who
> going to build Firebird. But on Windows i found no common way to install
> zlib.
>
>    Official site (www.zlib.net) offers for download full source package:
>
>         http://zlib.net/zlib128.zip
>
> and compiled DLL:
>
>         http://zlib.net/zlib128-dll.zip
>
> but, unfortunately, they offer just 32-bit DLL.
>
>    So, i have a couple of questions:
>
> a) should we put whole zlib source package into our extern folder ?
>
>    Note, to build Firebird with WIRE_COMPRESS_SUPPORT we need just header
> files.
>
> b) should we supply compiled zlib dll's (both 32 and 64 bit) with Firebird
> installer\zip package ?
>
>    Note, zlib depends in MSVCRXXX.DLL, so it will be good (but not
> necessary) if
> we supply dll built by the same MSVC version as Firebird.
>
> c) should we add zlib into our Windows build process ?
>
> d) what zlib dll should Firebid try to load on Windows:
>    - there was zlib.dll before version 1.1.14
>    - since v1.1.14 zlib renamed its dll into zlib1.dll
>    - zlib package offers also zlibwapi.dll which is built using stdcall
> calling
>      conventions (to please VB and other users who can't work with cdecl)
>
>    Note, native make produced zlib1.dll while contrib sub-folder have VS
> solution
> which produced zlibwapi.dll.
>
>    I'm confused - so small library have so many questions about its
> usage...
>
> Regards,
> Vlad
>
> PS option, not listed above - link against zlib statically.
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>


-- 
Jim Starkey
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to