244 reputation
13
bio website
location
age 29
visits member for 3 years
seen Feb 13 at 5:51

May
26
comment In languages that don't allow underscores in integer constants, is it a good practice to create a constant for 1 billion?
Long scale or short scale billion?
Nov
21
comment Saving all hits to a web app
@bevanb In most cases, the logging overhead on request is already paid (no additional per-request overhead), and the data is available very nearly live. Further, the aggregation and reporting is a very rare event compared to the requests; quite fast, and can both process and keep historical information. Squid + Calamaris or Apache + AWStats would be examples of this approach.
Nov
21
comment Saving all hits to a web app
These analytics can almost always be processed effectively from standard server logs
Dec
13
comment What performance can we expect from std::string's c_str()? Always constant time?
Boost.Spirit.Karma is a good tip for performance, but beware that it has a vastly different methodology that can be tricky to adapt existing printf style code (and coders). I've largely stuck with Boost.Format because our I/O is asynchronous; but a big factor is that I can convince my colleagues to use it consistently (still allows any type with an ostream<< overload - which nicely side-steps the .c_str() debate) The Karma peformance numbers.