Re: [twsocket] Transfer with UDP

2005-08-20 Thread Wilfried Mestdagh
Hello Dan, >> Buffer : array [0..5] of char; Variables on the stack does not consume time. Only if something has to be initialized or so, like for example a long string. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list pleas

Re: [twsocket] Transfer with UDP

2005-08-20 Thread Dod
Hello Wilfried, I am not sure that is consume no time. If I remember well, local vars are dynamicaly allocated and deallocated each time you go into the procedure, so it take a bit (not much) to allocate/deallocate it and finally you may produce more memory fragmentation. I may be wrong bu

Re: [twsocket] Transfer with UDP

2005-08-20 Thread Francois PIETTE
> WM> Variables on the stack does not consume time. Only if something has to > WM> be initialized or so, like for example a long string. > I am not sure that is consume no time. If I remember well, local vars > are dynamicaly allocated and deallocated each time you go into the > procedure, s

Re: [twsocket] Transfer with UDP

2005-08-20 Thread Dod
Hello Francois, So I was wrong and it is nice because I tended to avoid local vars declarations :-) But I remember having read somewhere that using/accessing local vars was slower than global ones and this why I said that. >> WM> Variables on the stack does not consume time. Only

Re: [twsocket] Transfer with UDP

2005-08-20 Thread Francois PIETTE
> So I was wrong and it is nice because I tended to avoid local vars > declarations :-) But I remember having read somewhere that > using/accessing local vars was slower than global ones and this why I > said that. The quality of a program is somewhat in inverse ratio to the numbe

Re: [twsocket] Transfer with UDP

2005-08-20 Thread Dan
- Original Message - From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, August 20, 2005 8:39 AM Subject: Re: [twsocket] Transfer with UDP > Hello Dan, > >>> Buffer : array [0..5] of char; > > Variables on the stack does not consume time. Only