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

Re: r100064 and BDB 4.0

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-06-25 18:05:24 CEST

Ben Collins-Sussman wrote:

>On Thu, 2004-06-24 at 16:11, Peter N. Lundblad wrote:
>
>
>>Hi,
>>
>>Maybe I shouldn't tell you, but I'm still using BDB 4.0 (becuase I'm lazy
>>and not using svn for anything critical, except as a client ofcourse).
>>r10064 broke the buidl for me since get_pagesize isn't available.
>>
>>Are we dropping support for 4.0 or is this just an oversight?
>>
>>
>
>Once again, my goof. The BDB docs don't say anything like "@since 4.2",
>grrrrr.
>
>Still, on a db4.0 system, how are we supposed to copy table-files in
>safe chunks if we don't know what page-size BDB is using? Maybe the BDB
>4.0 source has a header #define for a default value or something... or
>maybe we can just fall back to 4096 bytes, since that seems to be the
>default already.
>
>
It's a lot better to fall back to, say, 256 * 4096 bytes. You can be
almost 99.9% certain that BDB uses a power-of-2 page size, and copying
in 100k chunks is more efficient than copying in 4k chunks.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 25 18:09:43 2004

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.