[Botan-devel] Re: [Monotone-devel] oprofile data for mtn 0.37.
lloyd at randombit.net
Wed Apr 2 15:14:58 EDT 2008
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.
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.
More information about the botan-devel