Performance of type annotations

@sdanisch Indeed, thanks a lot!