php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #10750 Seeking, reading and writing with GZIP
Submitted: 2001-05-09 09:45 UTC Modified: 2001-05-10 08:09 UTC
From: elifarley at yahoo dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.5 OS: n/a
Private report: No CVE-ID: None
 [2001-05-09 09:45 UTC] elifarley at yahoo dot com
- Seeking in a gzip file in read only mode is not quite 
fast;

- Seeking backwards in a gzip file in write mode is not 
supported;

I wish I could treat a gzip file like an ordinary 
uncompressed file, seeking to any position of it, reading, 
then writing, then reading some more, and so on. Everything 
done very quickly, of course.

Proposed solution: add support for RAZip files. Right now 
it is still not possible to write at arbitrary positions in 
a RAZip-compressed file, but soon it will be. And random 
seek-and-read operations are much faster than with GZIP (In 
one test file, I could achieve almost 28 thousand percent 
speed increase in random reads).

For more information about razip files, please visit
http://www.geocities.com/elifarley/javalibs/

Regards,
Elifarley

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-09 16:38 UTC] sr@php.net
Reclassify as feature request.

Have a look at the PHP java support, maybe you can use your java classes to write to your format with this extension (please close this report if it works).

I didn't find any C library for your format, so it would need some work first to port your library to C ...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC