Some hopeful performance improvements to getConnections() and emit()