mozilla/pdf.js — pull request #837 by jviereck (2011-11-27 21:14:59+00:00)
Title: Check after each command execution duration

Right now we check every 500 commands if execution took longer then a certain time X (which is set to 50ms). This results in executing commands for around 100ms or even longer, as we don't check within the 500ms.

This patch checks after *each* executed command the duration of execution. This sounds like beeing more inefficient first, but test in #835 showed this isn't the case. I can't really tell why there isn't any noticeable change in performance. Please have someone check the numbers again.