optimise writing the map file
We currently write the map file to an io.BytesIO
buffer, and then write
it to an atomic temporary file. However, the file is opened for atomic
write, so the extra buffering doesn't really add anything other than
overhead.
Edited by Dan Villiom Podlaski Christiansen