From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-05-19 12:48:52
> log << "Mary has balance: " << get_balance("mary") << " and John has
> balance: " << get_balance("john");
> If so, when you have a bad key, you should have some extra information to
> log (the name, or something).
get_ballance has name. access_db does not.
> > 4. What kind of overhead it introduces? Now instead of directly
> writing into
> > stream we keep second copy of every piece of log essentially doubling
> > memory usage and increasing log overhead, isn't it?
> Have you actually tested it in a multi-threading environment, or is this
> just your guts?
How MT is related to my question? You introduces extra buffering level. I am
asking how efficient it is.