[interfacekit] Re: BSession(NG)

Adi Oanca <e2joseph@xxxxxxxxxx> wrote:
>> Also, never split the message into two port calls.
> No. I'm sorry, I will never agree with you on this one!

Can you elaborate a bit on why you don't do that?
Doing 2 port writes of 1024 should be slower than doing 1 write of 
2048, no matter if you need to allocate the memory (or part of it) 
first - and the problem should get worse the more parts the message 
will have.
The only upside that I can see is on low memory situations, where you 
cannot afford to allocate another 1024 bytes - but that seems very 
unlikely.

Bye,
   Axel.


Other related posts: