From: C. Scott Ananian Date: Wed, 27 Apr 2005 15:00:46 GMT Subject: Re: A shortcoming of the git repo format Message-ID: 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/ )