For Programmers: Free Programming Magazines  


Home > Archive > Compression > June 2007 > about gzip









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author about gzip
tguclu

2007-06-25, 7:56 am

Hi,

I'm running Debian on an ARM9 based card. I parse the data from serial
port and write them to a binary file.
And if a usb is mounted i run gzip and compress the file then transfer
it to USB.

Here is the problem ,when gzip starts to compress the file another
thread is still appending new data to the file.

What is the behaviour of gzip at this stage ?(gzip version 1.3.5)

Regards.

Mark Adler

2007-06-26, 9:56 pm

On Jun 25, 9:54 am, tguclu <tugrul.gu...@gmail.com> wrote:
> Here is the problem ,when gzip starts to compress the file another
> thread is still appending new data to the file.
>
> What is the behaviour of gzip at this stage ?(gzip version 1.3.5)


gzip will stop when it thinks it gets to the end of the input, which
is may be before the file is complete.

You should write your own gzip using zlib (easy to do), so that you
can write your own input collection routines that keep tailing off the
file until some signal that the file is complete.

Mark

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com