On 05/19/2010 08:25 AM, John Plevyak wrote:
I hate to say it, but the simplest thing is to use long long int for all this junk. In practice that is what it is on most systems, or at least that covers their useful range.
Agreed. Think that Leif is working on 64-bit file API, and forcing that for both 32 and 64 bit systems would certainly simplify the need for casting.
Given that traffic server has (or at least had) exactly zero mallocs on the critical path and nevertheless the freelist allocator is the top profiled function make it abundantly clear that cout is not a rational answer for high performance systems.
Sure, there's nothing wrong with printf family of functions. Regards -- ^TM