I would like to second this.
In Golang if you iterate over a thousand files and
defer File.close()
your OS will run out of file descriptorsIn Golang if you iterate over a thousand files and
defer File.close()
your OS will run out of file descriptorsSeriously, why is default ulimit on file descriptors on Linux measly 1024?