hrydgard/ppsspp — pull request #1033 by unknownbrackets (2013-03-20 08:32:03+00:00)
Title: Improve thread switching performance

This improves by a few percentage points, but it'll definitely depend on the game.

This bubbles up `threadReadyQueue[priority]` being the next issue with thread switching. I tried creating a vector (which was slower due to iteration), and then a sparse vector (with a priority field and binary search), but it wasn't really a clear win.

Anyway, it's better already this way. Threads often push_front() so making that faster matters.

-[Unknown]