
19 May
2005
19 May
'05
5:48 p.m.
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 the 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. Gennadiy