"tcl" may be slower than pure C/C++ app, but i am amazed that
it's taking 15 minutes (15x60x1000 microseconds) to parse each
SIP message.

Naresh, your problem may have more to do with your use of "tcl"
language than SIP. Also efficient scanner/parser design (more so
for a hand-generated one), is a non-trivial art. you need to be
focussing on those. Look at some of the existing C/C++ based
opensource SIP-stacks.

Of course what Attila suggested is a pretty good way to speed up
things.

- bd 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Attila Sipos
Sent: Wednesday, August 24, 2005 3:32 PM
To: kotha naresh kumar; [email protected]
Subject: RE: [Sip-implementors] query regarding sip parser 


Hi Naresh,

I am not surprised this is taking a long time since TCL is an interpreted
language so your processor is having to convert each TCL command into
machine code and excute it in order to parse the SIP message.

I would recommend that you convert your parser functions into C and then
call into them from the TCL script.
(TCL has a mechanism for extending the interpreter.  You can add new
"commands" into it.)

Regards,

Attila

Attila Sipos
http://www.vegastream.com



>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] Behalf Of kotha 
>> naresh kumar
>> Sent: 24 August 2005 10:26
>> To: [email protected]
>> Subject: [Sip-implementors] query regarding sip parser
>> 
>> 
>> hi
>> 
>>  i am writing a sip Parser in TCL i am able to write it
>> 
>> but one problem i am facing is it is taking 15 minutes to interpert 
>> the SIP message
>> 
>> can any one help me and suggest me any changes that i have do to
>> 
>> i am even attaching my code please verify it
>> 
>> and help me
>> 
>> and one more question normally TCl will take this much amount of time 
>> in Parsing sip message ?
>> 
>> does any one implemented SIP parser in TCL? 
>> 
>> please help me
>> 
>> waiting for reply
>> 
>> regards
>> naresh
>> 
>> 
>> Rock.com E-mail Now Has a HUGE 50MB of Storage!   Sign Up Now!
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 

_______________________________________________
Sip-implementors mailing list
[email protected]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors



_______________________________________________
Sip-implementors mailing list
[email protected]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to