Hi,

I don't know the real purpose of the all mentioned code in Synapse - 
but if you need to have data on wire in certain byte order you 
could/should use ntoh/ntohl (or its equivalent). I hope these 
functions are present on all architectures/supported development tools 
(because TCP/IP communication needs them). But I may be wrong.

Regards
D. Toman

On Sunday, April 11, 2010 9:45 PM ,
Lukas Gebauer <[email protected]> wrote:

>> could BLOCK on locking?! (in multi-threaded code).  Dr. Peter Below
>> (and others) gave us code something like 20 years ago to do in ONE
>> assembly instruction what the synutil.SwapBytes function is doing 
>> by
>> taking the scenic route. And does it about 60 TIMES faster
>> (depending on the
>
> Just quick note - one assembler function is very funny, when you 
> need
> to create code what working on many processor family (Intel, 
> Motorola,
> Arm,...) and when same code want to be runned as managed CIL on the
> .NET platform.
>
> You are funny from the totally irelevant performance penalty. But
> proposed sendinteger+sendbufer can cause 200ms delay in TCP
> communication. It is much more then you lost by little piece of
> ineffective code.
>
> It is very easy to make fun of trivia, by which everybody 
> understands.
> But really understand what's happening and why? 


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to