Re: [viewvc-users] ViewVC caching svn blame output?
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <4A01A0AE.7020609__148.007824509655$1241620740$gmane$org@collab.net> |
Johan Corveleyn wrote: > Is ViewVC able to cache/buffer/store_in_DB the output of svn blame? Or > does it just launch a new "svn blame" command (and parses the output) > every time someone requests such an annotation view through the web > interface? > > We are having a lot of trouble with the performance of svn blame for > large files (see this thread on the subversion users mailinglist: > http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2079688). > If ViewVC would be able to store pre-calculated diffs/annotations, that > would be a very useful workaround for this problem. > > I've searched info on the viewvc homepage, faq, docs, mailinglist... but > it's not clear to me whether viewVC does any such caching. Or have I > overlooked something? ViewVC has no server-side annotation cache, no. It performs the blame action every time. (In some versions it literally runs 'svn blame' ... in others is uses the svn_client_blame() APIs directly.) Now, ViewVC is supposed to support interactions with browser caches, but a quick glance at the code makes me think it might be deciding to invoke the browser's cache only after performing the annotation work. Seems kinda pointless at that juncture, wouldn't you agree? Of course, browser cache is only helpful for, you know, that one browser. A better situation would be for Subversion to actually store line change information in the repository (like CVS does) so annotation calculation didn't cost so much. -- C-Mike PS: I've wanted for a long time now to deepen the integration of ViewVC and MySQL so that such caching could occur (optionally), allowing ViewVC to make up for some of the shortcomings of the version control systems it exposes. But I've never had time to get any traction on the idea. :-( -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Distributed Development On Demand ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2081380 To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoBoK4ACgkQokEGqRcG/W7dXQCeKUx32pxbNxeNuC41kZhyR7u9 rgMAoKBoBCowq8R3jOE/7+SaBOg2IaRR =4slN -----END PGP SIGNATURE-----