[DGD] Re: status

Robert Forshaw iouswuoibev at hotmail.com
Wed Jan 7 20:39:14 CET 2004


>Why do you assume sscanf() is a 'rather expensive function' when it's
>implemented in C whereas your own code runs in interpreted LPC?

I did a little test and you are indeed right.

First I did 1 million sscanf operations on a string, seeking out '#'. It 
took 2.1730 seconds.

Then I did the equivilent operation on the same string using 
seek_and_return_string(), 1 million times.

It took 40.673 seconds.

It would seem I was 1871% wrong. ;)

_________________________________________________________________
Find a cheaper internet access deal - choose one to suit you. 
http://www.msn.co.uk/internetaccess

_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list