[interfacekit] Re: :) B_MOUSE_MOVED

> >     If you think 4 bytes will slow the system down... then, so be it!
>
> It won't slow down the system, but it'll be slower, that's a fact. Even
> if it wouldn't be noticeable :)

    Isn't that the point?

> >     I don't think 4 bytes would make a difference, especially that
> > only one B_MOUSE_MOVED is in the system !
>
> It's not only slower than without it, IMHO it's just not necessary to
> add it, because of the modifiers() function. Mouse movements are
> generally handled ASAP, so the return value from modifiers() should
> really be enough if someone is interested in that value (and even be
> faster to call if it doesn't require to call the app_server).

    How do you know that mouse movements are handled ASAP ? I see no
indication of that in disassembly code!
    In BWindow's current implementation, messages are dispatched in the
order they arrive! That is why I've suggested adding those 4 bytes, so that
the state of modifies won't be different when handling B_MOUSE_MOVED
message!


    I will do it as you guys say!, but I still remain convinced that adding
those 4 bytes will have no effect on performance!


Adi.



Other related posts: