darcs

Issue 1568 bytestring for Darcs.Patch.FileName

Title bytestring for Darcs.Patch.FileName
Priority feature Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur
Assigned To
Topics Performance

Created on 2009-08-26.11:31:42 by kowey, last changed 2023-03-27.18:44:58 by bfrk.

Messages
msg8502 (view) Author: kowey Date: 2009-08-26.11:31:37
Paraphrased from http://wiki.darcs.net/HowToHelp:

8. Try changing `FileName <FileName>`_ to store filenames as bytestrings
   rather than String. This should speed parsing somewhat, and reduce
   memory usage. We'd still need to convert to String for IO functions,
   but those are relatively isolated, so I think this'd still be a win
   (particularly as the filename starts out as a packed string in the
   patch files.

Sounds like something you'd need to benchmark.  Proceed with caution, as there
may be some compatibility/encodings stuff to contend with
msg23210 (view) Author: bfrk Date: 2023-03-27.18:44:57
Long since done by using AnchoredPath for all paths used in patches.
History
Date User Action Args
2009-08-26 11:31:42koweycreate
2009-08-27 13:43:51adminsetnosy: kowey, darcs-devel, thorkilnaur, dmitry.kurochkin
2009-08-27 14:32:42adminsetnosy: kowey, darcs-devel, thorkilnaur, dmitry.kurochkin
2023-03-27 18:44:58bfrksetstatus: needs-implementation -> resolved
messages: + msg23210