git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git and OpenDocument (OpenOffice.org) files

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 27, 2007, 14:15 UTC
Message-ID
<Pine.LNX.4.64.0708271510060.28586@racer.site>
In-Reply-To
<vpqr6lpvzqc.fsf@bauges.imag.fr>
Hi,
On Mon, 27 Aug 2007, Matthieu Moy wrote:
Show 15 quoted lines
> David Kastrup <dak@gnu.org> writes:
> 
> > Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> >
> >> On Mon, 27 Aug 2007, Mike Hommey wrote:
> >>
> >>> BTW, wouldn't it be more efficient to store the odf files unzipped ?
> >>
> >> Efficient how?  Speed-wise: no.  Space-wise: yes.
> >
> > Huh?  At least the "Space-wise: yes" seems rather nonsensical.
> 
> I don't know enough about git delta-compression and OpenDocument, but 
> git has better chance to efficiently delta-compress different versions 
> of the document if they're not compressed themselves.

A standalone zip archive (which is what an .odt file is, with a defined file structure) cannot be as efficient in compressing text, especially if it is versioned text with relatively few differences between versions, as delta compression.

So yes, you guessed the explanation (which I omitted) correctly.

As for the speed wise: I doubt that unpacking and then repacking can be more efficient than not doing it -- even if the files are transmitted via network. (Remember: blobs are stored compressed, be they in a pack, or loose.)

Ciao, Dscho

Previous: Matthieu MoyNext: Mike Hommey
Message 8 of 12 in “Git and OpenDocument (OpenOffice.org) files”
  1. Matthieu MoyAug 27, 2007
  2. Junio C HamanoAug 27, 2007
  3. Matthieu MoyAug 27, 2007
  4. Mike HommeyAug 27, 2007
  5. Johannes SchindelinAug 27, 2007
  6. David KastrupAug 27, 2007
  7. Matthieu MoyAug 27, 2007
  8. Johannes SchindelinAug 27, 2007
  9. Mike HommeyAug 27, 2007
  10. Sergio CallegariAug 27, 2007
  11. Johannes SchindelinAug 27, 2007
  12. David KastrupAug 27, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.