[Asterisk-Dev] ast_xxx function..?

Roy Sigurd Karlsbakk roy at karlsbakk.net
Sat Oct 1 02:08:28 MST 2005


>> IMHO this looks like a small call to a function cleaning up a  
>> string.  It really can't do much of a performance
>>  penalty, can it?
>>
>
> It would not be huge, no, but it's not zero, and we already get  
> enough complaints from people about performance :-)

attached is a short test of how to do this rather quickly. the  
resulting code from cc -O3 -S shows this would result in less than  
100 instructions per nonce check, which is not what I'd call a  
'performance penalty'. also the code is very simple and therefor  
can'be really be a maintenece burden either.

roy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nonce-test.c
Type: application/octet-stream
Size: 455 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20051001/7dc11582/nonce-test.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nonce-test.s
Type: application/octet-stream
Size: 1230 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20051001/7dc11582/nonce-test-0001.obj


More information about the asterisk-dev mailing list