Issue #1972300 by znerol, chx, dawehner: Write a more scalable dispatcher.