[interfacekit] Re: BSession

Paul wrote:

> > > What problem is it meant to solve?
> > No you have some answers.

> What does BSession fix? Did we profile? Is the cure worse than the problem?

One command that is send to the server can consist of multiple parameters,
and has a variable length. Sending each of these commands by using a 
write_port()
call is a huge performance panalty. Thus multiple parameters must be batched in
one transaction. And since multiple command are usually send in a rapid fashion,
multiple commands are buffered, to avoid even more write_port calls.

Of cause you can't buffer too many, because the app_server must process 
commands.
Thats why there is Sync() to force sending all buffered commands. And the 
ammount
of buffered commands is limited in BSession, too.

Mit freundlichen Grüßen

Marcus Overhagen



Other related posts: