monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] oprofile data for mtn 0.37.


From: Jack Lloyd
Subject: Re: [Monotone-devel] oprofile data for mtn 0.37.
Date: Wed, 2 Apr 2008 15:14:58 -0400
User-agent: Mutt/1.5.11

On Wed, Mar 12, 2008 at 05:19:50PM -0400, Zack Weinberg wrote:
> >  > Top of profile is
> >  >
> >  > 9678874  11.1247  std::_Rb_tree<std::string, std::pair<std::string
> >  > const, Botan::Mutex*> ...>
> 
[...]
> >  3) Drop global shared state wholesale, and require applications to
> >  maintain any per-thread or per-process state (the RNG, allocators,
> >  etc). [I've been leaning towards this of late for various other
> >  reasons anyway]
> 
> This would be my choice, being the most efficient option for a
> single-threaded program like Monotone.
> 
> zw

As a start in this direction (removing the global state will be a
fairly long/incremental process), and to address the immediate
performance concern, I've checked in a revision to n.r.b
(902a87e6d79771db7a64cc115b279febb4c936ee) that removes the
string->mutex mapping code and replaces it with plain objects.

-Jack




reply via email to

[Prev in Thread] Current Thread [Next in Thread]