git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* On data structures and parallelism
@ 2009-05-17 15:23 Heikki Orsila
  2009-05-17 17:06 ` Linus Torvalds
  0 siblings, 1 reply; 5+ messages in thread
From: Heikki Orsila @ 2009-05-17 15:23 UTC (permalink / raw)
  To: git; +Cc: Linus Torvalds

There was an interesting discussion at

http://realworldtech.com/forums/index.cfm?action=detail&id=98909&threadid=98430&roomid=2

that involves DAGs and decompression in Git. The problem is achieving 
parallelism. The following comment was made:

"And is it possible to store the block pointers from one object to 
another in uncompressed form?"

Is there a case in Git where an "object" could store SHA1 in 
uncompressed format, allowing prefetching the next object in chain 
before uncompressing the current object? Prefetching could increase 
parallelism (and speedup) in some cases.

A quick glance at Git's source code showed that commit objects are 
compressed. Having even a single parent SHA1 in uncompressed format 
would allow some prefetching. All but perhaps a few objects contain at 
least one parent SHA1 :-)

-- 
Heikki Orsila
heikki.orsila@iki.fi
http://www.iki.fi/shd

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-17 20:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-17 15:23 On data structures and parallelism Heikki Orsila
2009-05-17 17:06 ` Linus Torvalds
2009-05-17 17:46   ` Linus Torvalds
2009-05-17 19:31     ` david
2009-05-17 20:35       ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).