darcs

Issue 839 enable global cache by default

Title enable global cache by default
Priority feature Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, gwern, jaredj, kowey, thorkilnaur, tommy, zooko
Assigned To
Topics Performance, ProbablyEasy

Created on 2008-05-08.22:45:58 by zooko, last changed 2009-08-27.14:18:12 by admin.

Messages
msg4579 (view) Author: zooko Date: 2008-05-08.22:45:57
I think it was a good idea of droundy's to leave global cache [1] default to off
in darcs 2.0.0, but I am beginning to think that it might be a good idea for it
to be on by default in darcs 2.0.1.

Nowadays, it is not unusual for applications to use up space in a ~/.appname
directory, provided that they so state in the manual and ideally at "install
time" or "setup time" in the user-visible output.

Darcs-2 has very good performance nowadays, and performing well in more
different use cases, as I think a global cache achieves, by default, would be a
welcome addition.

(Indeed, for the use case of doing a full darcs get over the network using
hashed-format repositories [2], it already performs so well without a global
cache that adding a global cache hardly helps.  I guess this shows that we
should measure before we decide.) 

[1] http://darcs.net/manual/node5.html#SECTION00510000000000000000
[2] http://lists.osuosl.org/pipermail/darcs-users/2008-April/011783.html
msg4583 (view) Author: gwern Date: 2008-05-09.02:35:57
Just to note my own personal experience: I've been steadily darcs getting and
pulling various stuff since darcs-2 was released, as is my wont, and I greatly
appreciate the speed increase. 

Currently, .darcs uses up 35M. In comparison, my .saves/ directory for Emacs
used 300M - until I deleted the largest ten backups and ran a duplicate-file
utility over it and managed to shrink it down to a mere 188M. In further
comparison, .wine is 1.7G, .ccache is 139M (I'm not even sure what that is), and
.mozilla is 97M.

So while it certainly is a worthwhile concern that users might be upset or
hostile about darcs caching stuff behind their backs, I don't think it'll be a
problem: it comes with a clear benefit, and is relatively modest compared to
some things.
msg6434 (view) Author: droundy Date: 2008-10-24.19:55:56
This sounds reasonable to me.
msg6438 (view) Author: zooko Date: 2008-10-24.20:50:55
I hope the duplicate file utility you used was
http://pypi.python.org/pypi/dupfilefind
  ;-)
msg6476 (view) Author: simon Date: 2008-10-26.23:02:57
Patch submitted to darcs-user for review.
msg6489 (view) Author: simon Date: 2008-10-28.02:39:23
The following patch updated the status of issue0839 to be resolved:

* resolve issue0839: enable global cache by default 
Ignore-this: 50deab104a57c707bfaf4e00a00c69cb
History
Date User Action Args
2008-05-08 22:45:58zookocreate
2008-05-09 02:35:59gwernsetstatus: unread -> unknown
nosy: + gwern
messages: + msg4583
2008-10-24 19:56:05droundysetpriority: wishlist -> feature
nosy: + dmitry.kurochkin, droundy, simon, kowey, thorkilnaur, jaredj
topic: + ProbablyEasy, Performance
messages: + msg6434
2008-10-24 20:51:02zookosetnosy: droundy, tommy, beschmi, kowey, zooko, dagit, simon, thorkilnaur, gwern, jaredj, dmitry.kurochkin
messages: + msg6438
2008-10-26 23:03:03simonsetnosy: droundy, tommy, beschmi, kowey, zooko, dagit, simon, thorkilnaur, gwern, jaredj, dmitry.kurochkin
messages: + msg6476
2008-10-26 23:04:45simonsetnosy: droundy, tommy, beschmi, kowey, zooko, dagit, simon, thorkilnaur, gwern, jaredj, dmitry.kurochkin
title: make global cache turned on by default -> enable global cache by default
2008-10-28 02:39:26simonsetstatus: unknown -> resolved-in-unstable
nosy: droundy, tommy, beschmi, kowey, zooko, dagit, simon, thorkilnaur, gwern, jaredj, dmitry.kurochkin
messages: + msg6489
2009-04-22 03:29:09twbsetstatus: resolved-in-unstable -> resolved
nosy: droundy, tommy, beschmi, kowey, zooko, dagit, simon, thorkilnaur, gwern, jaredj, dmitry.kurochkin
2009-08-06 18:01:27adminsetnosy: + markstos, jast, Serware, darcs-devel, mornfall, - droundy, gwern, jaredj
2009-08-06 21:04:15adminsetnosy: - beschmi
2009-08-10 22:20:20adminsetnosy: + gwern, jaredj, - markstos, darcs-devel, jast, Serware, mornfall
2009-08-11 00:12:48adminsetnosy: - dagit
2009-08-25 17:32:04adminsetnosy: + darcs-devel, - simon
2009-08-27 14:18:12adminsetnosy: tommy, kowey, darcs-devel, zooko, thorkilnaur, gwern, jaredj, dmitry.kurochkin