Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task scheduling: Don't immediately re-run a useless task.
If a task's fire() method returns false, then delay re-running the task until at least one other task runs. This may require exiting the task loop early. Initial measurements show that this has a strangely good effect on runtime, possibly due to cache layout or whatever; non-task-heap performance on the NullTask test is 2.94s. But the intention is to improve performance of configurations with KernelTun-type elements that do significant work in selected(); Roberto Riggio reported a problem. Signed-off-by: Eddie Kohler <ekohler@gmail.com>
- Loading branch information