Docker is very slow when exposing large port ranges

Like the title says, docker is very slow when exposing large port ranges (e.g. upwards of 1000 ports). Additionally, it consumes large amounts of RAM unless the userland-proxy is deactivated. Does anyone know of a workaround? I can not use a reverse proxy.