Re: two questions about the format of loose object

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Liu Yubao
Date: Monday, December 1, 2008 - 2:28 am

Junio C Hamano wrote:

Thanks for your explanation, but I doubt if it's too costly to change the
format of loose object, after all this doesn't change the format of pack
file and affect git-pull/fetch of old git client. 

I ask the "why not" questions because I doubt if I miss some technical points
that the change isn't worth at all in fact.

If no severe technical problem will occur, I think it's worth breaking
*forward* compatibility for better performance and I'm willing to implement
it.

Some cons and pros.

cons:

* old git client can't read loose objects in new format
  (People degrade git rarely and old git can read pack files
   generated by new git, so it's not a big problem)

pros:

* avoid compressing and uncompressing loose objects that are likely
  frequently used when you are coding/merging
* share loose objects among multipe git processes
* the new code path is simpler although we will have more code paths for
  compatibility


Best regards,

Liu Yubao

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
two questions about the format of loose object, Liu Yubao, (Mon Dec 1, 1:00 am)
Re: two questions about the format of loose object, Junio C Hamano, (Mon Dec 1, 1:25 am)
Re: two questions about the format of loose object, Liu Yubao, (Mon Dec 1, 2:28 am)
Re: two questions about the format of loose object, Jakub Narebski, (Mon Dec 1, 4:32 am)
Re: two questions about the format of loose object, Nick Andrew, (Mon Dec 1, 5:16 am)
Re: two questions about the format of loose object, Shawn O. Pearce, (Mon Dec 1, 8:21 am)
Re: two questions about the format of loose object, Shawn O. Pearce, (Mon Dec 1, 8:32 am)
Re: [PATCH 4/5] support reading uncompressed loose object, Shawn O. Pearce, (Tue Dec 2, 8:58 am)
Re: [PATCH 5/5] support writing uncompressed loose object, Shawn O. Pearce, (Tue Dec 2, 9:07 am)
Re: two questions about the format of loose object, Nicolas Pitre, (Wed Dec 3, 5:54 pm)