darcs

Issue 1007 use lazy bytestring in darcs

Title use lazy bytestring in darcs
Priority feature Status needs-implementation
Milestone Resolved in
Superseder wish: "chunky" representation for hunks
View: 1357
Nosy List darcs-devel, dmitry.kurochkin, dons, kowey
Assigned To
Topics Performance

Created on 2008-08-16.10:30:54 by kowey, last changed 2010-04-04.17:49:12 by kowey.

Messages
msg5552 (view) Author: kowey Date: 2008-08-16.10:30:53
Another fun project to work on.  Experiment with the use of lazy
bytestrings in darcs, especially now that we are using bytestrings
already.

Also, as Petr Ročkai noticed on IRC:
  mornfall: mmapFileByteStringLazy oh wow.
  mornfall: Maps region of file and returns it as
    Data.ByteString.Lazy.ByteString. File is mapped in in ReadOnly mode. See
  mmapFilePtrLazy for details. Chunks are mapped in on demand.
  mornfall: And it works on windows.
  mornfall: And the lazy zlib binding. Mmm.
msg5554 (view) Author: kowey Date: 2008-08-16.10:36:57
David's notes on it (I think):

Ideally, we'd do this after introducing the new hunk patches. Also note that I
do not want lazy IO, as that's been a major source of headaches in terms of
problems like file handle leaks. But O(1) append would be nice, as would the
highly-optimized nature of bytestring.
msg6467 (view) Author: kowey Date: 2008-10-26.08:12:50
Making Don nosy (maybe of interest?)
msg8316 (view) Author: kowey Date: 2009-08-21.16:37:54
I've added issue1357 to our superseder list because of David's suggestion that
it would be ideal to get chunky hunks first, but I don't really understand why
he thinks this is the case, maybe that the benefits would only really kick in
once we have them?

I'd recommend that we only do this with extensive benchmarking and also some
fairly detailed argumentation about when we should/shouldn't be using these lazy
bytestrings.
History
Date User Action Args
2008-08-16 10:30:54koweycreate
2008-08-16 10:34:01koweysetpriority: feature
nosy: beschmi, kowey, dagit
topic: + Performance
2008-08-16 10:36:58koweysetstatus: unread -> unknown
nosy: beschmi, kowey, dagit
messages: + msg5554
2008-10-26 08:12:52koweysetnosy: + dmitry.kurochkin, dons, simon, thorkilnaur
messages: + msg6467
2009-08-06 21:11:18adminsetnosy: - beschmi
2009-08-10 23:42:43adminsetnosy: - dagit
2009-08-21 16:37:57koweysetstatus: unknown -> needs-implementation
nosy: kowey, simon, thorkilnaur, dons, dmitry.kurochkin
superseder: + wish: "chunky" representation for hunks
messages: + msg8316
2009-08-25 17:32:38adminsetnosy: + darcs-devel, - simon
2009-08-27 10:36:47koweysetnosy: kowey, darcs-devel, thorkilnaur, dons, dmitry.kurochkin
2009-08-27 14:28:43adminsetnosy: kowey, darcs-devel, thorkilnaur, dons, dmitry.kurochkin
2010-04-04 17:49:12koweysetnosy: - thorkilnaur