[interfacekit] Re: BSession(NG)


Hi Axel!


Axel Dörfler 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.

:-)) This is fuuun.
That's exactly the reason.
"message" here was: BWindow/BView message (ex: AS_DRAW_LINE+x+y+x1+y1) not a port(system/kernel) message.



Adi.



--------------------------------------------------------------- Lucram pentru tine. Analizam. Cautam zilnic. Alegem ceea ce te intereseaza. Te anuntam. http://www.REDUCERI.ro/


Other related posts: