Your map filter is not exactly what I expected to see, but it is short and sweet. I like it. My map selection slows down map generation quite a bit, relatively speaking. I might hybridize the two and see what happens.
It takes ~0.5sec in my solution.
It would be interesting to release just it as a patch to the reference client, for human miners.