Re: building async-calls

From: Adrian Chadd <adrian@dont-contact.us>
Date: Mon, 17 Dec 2007 17:34:28 +0900

On Sun, Dec 16, 2007, Tsantilas Christos wrote:

> > Have you benchmarked what that'll do to performance? :)
>
> Maybe has some performance penalty. But if there is a performance
> decrease, I do not think that it is huge.
> Normally creating a class is not more costly than creating a C struct
> and initialize it. The AsyncCall classes are very simple classes.
>
> Moreover, I believe with current design you are loosing more in
> performance, trying to prevent problems adding extra code for tests or
> workarounds.

CPU: AMD64 processors, speed 2613.46 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a unit mask of 0x00 (No unit mask) count 100000
samples % image name symbol name
27013 44.2713 squid EventScheduler::schedule(char const*, void (*)(void*), void*, double, int, bool)
2618 4.2906 libc-2.6.1.so memcpy
2217 3.6334 libc-2.6.1.so memset
1425 2.3354 squid MemPool::clean(long)
913 1.4963 squid mem_node::dataRange() const

Might want to fix that..

Adrian
Received on Mon Dec 17 2007 - 01:27:51 MST

This archive was generated by hypermail pre-2.1.9 : Mon Dec 31 2007 - 12:00:03 MST