Re: A shortcoming of the git repo format
- From
C. Scott Ananian <cscott@cscott.net>
- Date
- Apr 27, 2005, 15:00 UTC
- Message-ID
- <Pine.LNX.4.61.0504271058120.5008@cag.csail.mit.edu>
- In-Reply-To
- <426F2671.1080105@zytor.com>
On Tue, 26 Apr 2005, H. Peter Anvin wrote:
> Additionally, there is the question of the handling of strings that may > contain \n or even \0 (which may be necessary for some applications).
While we're at it, I'll just mention that '\0' is a rather bad delimiter for zlib-compressed files; it usually ends up enlarging the file by three or more bytes compared to using any whitespace character. The reason is obvious: \0 isn't actually used anywhere else in the compressed contents, so it tends to pollute zlib's dictionary.
It's probably too late to do anything about this, but hey. --scott
Soviet STANDEL Yakima JMTRAX Hussein Ft. Meade algorithm JMBLUG CIA
SEQUIN Bejing Morwenstow Boston nuclear Sigint Ft. Bragg ZRBRIEF Peking
( http://cscott.net/ )