Re: [Firebird-devel] Wire compression

2016-06-21 Thread Alex Peshkoff
On 06/20/2016 06:53 PM, Jiří Činčura wrote: > Can this be somewhat requested also by isc_info_firebird_version or > similar? > This is requested by isc_version() in legacy API and IUtil::getFbVersion() in new one. -- A

Re: [Firebird-devel] Wire compression

2016-06-20 Thread Jiří Činčura
Can this be somewhat requested also by isc_info_firebird_version or similar? -- Mgr. Jiří Činčura Independent IT Specialist -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an i

Re: [Firebird-devel] Wire compression

2016-06-20 Thread Alex Peshkoff
On 06/18/2016 06:10 PM, Jiří Činčura wrote: >> Do you receive pflag_compress set in accept->p_acpt_type? You should >> check this value to decide use compression later or not. > Yes, I do. I receive 261, which is ptype_lazy_send | pflag_compress, if > I'm not mistaken. > > Not sure where to look n

Re: [Firebird-devel] Wire compression

2016-06-18 Thread Jiří Činčura
Ahh, looks like I found the problem. The DeflateStream in .NET is producing really raw deflate, while Firebird want's the zlib header. -- Mgr. Jiří Činčura Independent IT Specialist -- What NetFlow Analyzer can do for yo

Re: [Firebird-devel] Wire compression

2016-06-18 Thread Jiří Činčura
OK, I'm successfully writing data to server for op_attach - checked on network level. Just "for fun" I tried to write uncompressed data, as it would without compression. In that case the server closes connection with me during writing of DPB for op_attach. -- Mgr. Jiří Činčura Independent IT Spe

Re: [Firebird-devel] Wire compression

2016-06-18 Thread Jiří Činčura
> Do you receive pflag_compress set in accept->p_acpt_type? You should > check this value to decide use compression later or not. Yes, I do. I receive 261, which is ptype_lazy_send | pflag_compress, if I'm not mistaken. Not sure where to look next. > As far as I know no such flag exists. > Try

Re: [Firebird-devel] Wire compression

2016-06-17 Thread Alex Peshkoff
On 06/17/2016 11:54 AM, Jiří Činčura wrote: > Hi, > >> Yes. May be the only detail is that zlib may compress data in slightly >> different ways. In our case data compressed not as a set of packets - >> the stream is compressed as a whole with flashes in the end of each >> packet. > Can i turn on so

Re: [Firebird-devel] Wire compression

2016-06-17 Thread Jiří Činčura
Hi, > Yes. May be the only detail is that zlib may compress data in slightly > different ways. In our case data compressed not as a set of packets - > the stream is compressed as a whole with flashes in the end of each > packet. Can i turn on some flag on Firebird to see whether it's happy with

Re: [Firebird-devel] Wire compression

2016-05-27 Thread Alex Peshkoff
On 05/25/2016 08:42 PM, Jiří Činčura wrote: >> are compressed. I can't imagine a case where it creates problems, and >> therefore separate in/out setup looks just like unneeded complication >> for both protocol and user environment. > So how do I know whether I should or shouldn't (de)compress the

Re: [Firebird-devel] Wire compression

2016-05-25 Thread Jiří Činčura
> Client controls compression in both directions, not separately in/out. > Must say that in most cases (i.e. LAN) compression makes almost no > visible effect regarding both data exchange speed (network is too fast) > and CPU load (compression of relatively small data volume, passed over > the

Re: [Firebird-devel] Wire compression

2016-05-25 Thread Alex Peshkoff
On 05/25/2016 05:31 PM, Jiří Činčura wrote: >> Yes. May be the only detail is that zlib may compress data in slightly >> different ways. In our case data compressed not as a set of packets - >> the stream is compressed as a whole with flashes in the end of each >> packet. > Great. I hope the .NET'

Re: [Firebird-devel] Wire compression

2016-05-25 Thread Jiří Činčura
> As expected - what a reason to place implementation details in user > documentation? No, I agree. I was just trying to express I did my homework before asking. :) > Yes. May be the only detail is that zlib may compress data in slightly > different ways. In our case data compressed not as a se

Re: [Firebird-devel] Wire compression

2016-05-25 Thread Alex Peshkoff
On 05/25/2016 02:41 PM, Jiří Činčura wrote: > Hi *, > > is there any more information about %subj%? I've found only > README.wire.compression.html and CORE-733. Not much implementation > details there. As expected - what a reason to place implementation details in user documentation? > Or is it

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-12-01 Thread Fabiano Kureck - Desenvolvimento SCI
I'll look this! Thanks! On 01/12/2014 16:30, Vlad Khorsun wrote: 01.12.2014 19:41, Fabiano Kureck - Desenvolvimento SCI wrote: How can I enable wire compression? I downloaded Firebird today, and not found any documentation about that (That I can found). Windows build was committed just tod

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-12-01 Thread Vlad Khorsun
01.12.2014 19:41, Fabiano Kureck - Desenvolvimento SCI wrote: > How can I enable wire compression? I downloaded Firebird today, and not found > any documentation about that (That I can found). Windows build was committed just today, don't hurry ;) Try next snapshot build and look for doc\READM

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-12-01 Thread Carlos H. Cantu
Title: Re: [Firebird-devel] Wire compression and zlib on Windows Afaik, it will be available starting from Beta 2. []s Carlos http://www.firebirdnews.org FireBase - http://www.FireBase.com.br How can I enable wire compression? I downloaded Firebird today, and not found any documentation

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-12-01 Thread Fabiano Kureck - Desenvolvimento SCI
How can I enable wire compression? I downloaded Firebird today, and not found any documentation about that (That I can found). Thanks. On 01/12/2014 11:47, Vlad Khorsun wrote: 28.11.2014 13:39, Vlad Khorsun wrote: Done. Regards, Vlad --

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-12-01 Thread Vlad Khorsun
28.11.2014 13:39, Vlad Khorsun wrote: Done. Regards, Vlad -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivit

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-11-28 Thread Alex Peshkoff
On 11/28/14 19:13, Carlos H. Cantu wrote: > AP> What pages? That's about _wire_ compression, not database. It's turned > AP> off by default, and it's supposed that reasonable people use it only for > AP> WAN connections where reducing size (and specially number) of packages > AP> is expected to lea

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-11-28 Thread Carlos H. Cantu
AP> What pages? That's about _wire_ compression, not database. It's turned AP> off by default, and it's supposed that reasonable people use it only for AP> WAN connections where reducing size (and specially number) of packages AP> is expected to lead to better performance. Alex, can we enable/disa

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-11-28 Thread Thomas Steinmaurer
Jim, > Has anyone done any performance studies on zlib? I never trust benchmarks which haven't run on my own, but slide 8 here: http://www.slideshare.net/Hadoop_Summit/kamat-singh-june27425pmroom210cv2 is a good fit regarding cpu time vs. compression ratio. Working with Cassandra for the last t

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-11-28 Thread Alex Peshkoff
On 11/28/14 18:29, James Starkey wrote: > 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 p

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-11-28 Thread James Starkey
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 decompres

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-11-28 Thread Adriano dos Santos Fernandes
On 28/11/2014 11:02, Vlad Khorsun wrote: > 28.11.2014 14:50, Adriano dos Santos Fernandes wrote: >> On 28/11/2014 09:39, Vlad Khorsun wrote: >>> Hi all. >>> >>> Recently wire compression was implemented by Alex. It uses well known >>> zlib >>> library. On Linux zlib could be installed as a

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-11-28 Thread Vlad Khorsun
28.11.2014 14:50, Adriano dos Santos Fernandes wrote: > On 28/11/2014 09:39, Vlad Khorsun 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 w

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-11-28 Thread Alex Peshkoff
On 11/28/14 15:34, Thomas Steinmaurer wrote: >> Recently wire compression was implemented by Alex. It uses well known >> zlib >> library. > Have you guys considered LZ4? https://code.google.com/p/lz4/ > > It is getting very popular in the big-data / NoSQL area for both, > compressing data on

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-11-28 Thread Adriano dos Santos Fernandes
On 28/11/2014 09:39, Vlad Khorsun 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

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-11-28 Thread Thomas Steinmaurer
> Recently wire compression was implemented by Alex. It uses well known zlib > library. Have you guys considered LZ4? https://code.google.com/p/lz4/ It is getting very popular in the big-data / NoSQL area for both, compressing data on disk and over-the-wire. Regards, Thomas On Linux zlib

Re: [Firebird-devel] Wire compression and zlib on Windows

2014-11-28 Thread Dimitry Sibiryakov
28.11.2014 12:39, Vlad Khorsun wrote: > So, i have a couple of questions: My answers would be a) No b) Yes c) zlib1 IMHO, client and server should handle cases when zlib is not found and ignore compression option (with a warning, perhaps). -- WBR, SD. --