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

Re: svn commit: r1326354 - in /subversion/trunk/subversion: include/private/svn_named_atomic.h libsvn_fs_fs/fs_fs.c libsvn_subr/svn_named_atomic.c

From: Blair Zajac <blair_at_orcaware.com>
Date: Sun, 15 Apr 2012 08:02:37 -0700

On 04/15/2012 07:49 AM, stefan2_at_apache.org wrote:
> Author: stefan2
> Date: Sun Apr 15 14:49:21 2012
> New Revision: 1326354
>
> URL: http://svn.apache.org/viewvc?rev=1326354&view=rev
> Log:
> Disable the revprop cache if our sync. mechanisms are too expensive.
>
> * subversion/include/private/svn_named_atomic.h
> (svn_named_atomic__is_efficient): declare new API function
> * subversion/libsvn_subr/svn_named_atomic.c
> (SYNCHRONIZE_IS_FAST): new constant, set depending on system /
> compiler capabilities
> (svn_named_atomic__is_efficient): implement new API function
> * subversion/libsvn_fs_fs/fs_fs.c
> (has_revprop_cache): disable cache if sync is slow
>
> Modified:
> subversion/trunk/subversion/include/private/svn_named_atomic.h
> subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
> subversion/trunk/subversion/libsvn_subr/svn_named_atomic.c
>

> +/** Returns #TRUE on platforms that don't need expensive synchronization
> + * objects to serialize access to named atomics. If this returns #FALSE,
> + * reading from or modifying a #svn_named_atomic__t may be as expensive
> + * as a file system operation.

That is assuming it's a local file system? It still may be faster than
getting a file from NFS, which people will host repositories on.

Blair
Received on 2012-04-15 17:03:12 CEST

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.