Well, I have not performed a real dbmail benchmark, only
a simple one. This benchmark consisted of a simple
function that fills a buffer of length 4096 30 times
What I found is that for this buffer length, the old
code (using sprintf()) is about 20 times slower. Using
a profiler I found that a lot of time (about 75%) is
spent in strlen(). Every time a character is appended,
the end of the string in the buffer needs to be found,
so strlen() is used.
I do not know if there is a really big speed-up when doing
pop over the network, but this change should be able
to save some cpu cycles.
Ilja
On Monday, Oct 13, 2003, at 14:58 Europe/Amsterdam, Matthew T. O'Connor
wrote:
On Mon, 2003-10-13 at 06:28, Ilja Booij wrote:
I've changed this appending of characters to:
buffer[buffer_pos++] = *nextpos
Any benchmark on this? Even a really rough one? Just curious.
_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev