Various fixes
 - circular queue
 - compact
 - async performance
Merge remote-tracking branch 'origin/master'