[interfacekit] Re: BHandler::fToken

> "Marc Flerackers" <mflerackers@xxxxxxxxxx> wrote:
> > Why would it contain hackery, why not just a copy of the BMessage
> > class,
> > without unneeded functionality=3F This reduces the amount of code to
> > write on
> > both sides, and reduces the amount of possible bugs :). Besides
> > flattened
> > messages are not such a bad thing, the amount of overhead it would
> > cause is
> > highly exaggerated I think.
> > For window/view communication a whole other command based system
> > exists, and
> > there I find it justified. But for things that arrive as message, and
> > will
> > be handled as a message, I think BMessage should be used, unless
> > testing
> > shows it's a bottleneck.
> >
> > The app=5Fserver messages that arrive on the event port have as magic
> > 'FOB1',
> > which shows they're  normal flattened BMessages.
>
> When we are using BMessages (which are itself not expensive, I agree
> with you here), we lose the possibility to bundle several messages
> together and send them once. And there is the real speed bottleneck,
> not in the creation of the message.

But by caching/bundling messages it takes longer before they arrive, so they
can have lost their meaning already (mouse was here some time ago :)), and
the responives of the system may go down.

> Also, there are some things (like BView pointers) that only the BWindow
> knows about (at least, I think so), so it may reduce overhead there as
> well (as creating & flattening on the server, copying, unflattening on
> the client, and then changing, and passing it to the target looks quite
> expensive compared to the app=5Fserver messages).

Well, if we find out that the BMessages form a real bottleneck, we can
always try to optimize :). But I never found my BeOS system slow in response
to mouse movement. I think most of the optimization can be found in using
the most from the newer hardware. Especially graphics accelleration.

Has anyone tried BeOS R5 on a processor with Hyper-Threading enabled? I was
wondering how much of a performance boost you get.

Marc Flerackers (mflerackers@xxxxxxxxxx)
Software Engineer


Other related posts: