thread: Better load balancing
notYuriy opened this issue · 0 comments
notYuriy commented
As of now, task allocator is very simplistic
Florence/src/thread/scheduler.zig
Lines 48 to 60 in 8d788c0
There are two possible ways to improve task allocation algorithm
- Better way to measure load than simply number of tasks. Ideally, we want to measure how much time is spent in each of those tasks using
os.platform.clock()
function - Use a better data structure than array.