[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: AW: Compressed Pristines (Custom Format?)

From: Greg Stein <gstein_at_gmail.com>
Date: Fri, 23 Mar 2012 15:29:05 -0400

On Fri, Mar 23, 2012 at 14:09, Ashod Nakashian <ashodnakashian_at_yahoo.com> wrote:
>...
> The overhead in size isn't an issue (at least not a major one) rather the overhead of *speed* is. At least that's my argument. I need to expand that section with both approaches with pros/cons, but first let's agree on the topic debated: to custom format, or to not.

wc.db is always opened. In fact, it *must* be to look up any pristine
information. Opening that database is the slowest operation. From that
point, things are very fast.

For simplicity's sake, I would recommend an initial solution using
wc.db for the metadata. You could then write a test to see whether a
custom format would significantly outperform sqlite, and discussion a
change at that point.

IOW, do not "prematurely optimize". Go with the straightforward
sqlite-based solution and test/validate the speed in a future review.

Cheers,
-g
Received on 2012-03-23 20:29:39 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.