Mail Archives: djgpp/1995/08/08/05:25:36
On Mon, 7 Aug 1995, Kevin Baca wrote:
> This works great under plain DOS, but under Windows it's about 20%
> slower. If I remove the CLI, the performance goes back up, but then
> my buffer gets trashed. Anyone have any idea why the CLI slows
> performance under Windows?
CLI is a privileged instruction under Windows (disabling interrupts in a
multitasked environment is a risky business), so Windows traps it and
does what in effect disables interrupts for the task which asked for it.
This inflicts runtime penalty.
- Raw text -