Improve performance of main server loop (#68)
Reduce max time to 10 ms (#68)
Merge branch 'feature/performance'