I've seen a few comments that the consoles are slow, so I tested them to =
find the source of the slowness. I modified the code on the user =
console (colinux-console-nt or colinux-console-fltk) to speed it but it =
made no difference. The change modified the way the message pipe was =
handled and buffered. That means the slowness is on the coLinux driver =
Every message sent (every character, word or line on the console) has to =
deal with a context switch in the driver from linux to windows and back. =
That is a lot of overhead to send one message. The solution is to =
buffer up a few messages before the context switch. The would resolve =
the need to force a context switch just to send one message.
A deeper look into this, on a single processor (or single core) the =
context switch is needed for the one processor to process both the =
windows side and the linux side. On multiple processors (dual core or =
more processors), however, the context is not needed as one processor =
can process the linux side while the other can process the windows side. =
We should write the code for optimal performance for both single or =
I have already started to write the code to buffer the messages before =
the context switch.
Get latest updates about Open Source Projects, Conferences and News.