featurebase/syswrap
Matt Jaffee e7f65cf7be
implement global open file counter using syswrap
close files after using them if global max is passed.

I originally implemented this without the global count—just always closing files
when done with them, and reopening for new writes. This was crazy slow for that
one test that uses mustSetBits in a big loop. I modified the test to use
importRoaring and everything worked better (though much more slowly).

After adding the global counter, I ran the tests with that one test using
mustSetBits again, and the performance was similar to master. After completing
this PR, I ran the tests with the max limit set to 5—they still passed but were
much slower.
2019-03-23 14:52:16 -05:00
..
mmap.go lock MaxMapCount and fix unused var 2019-03-19 12:55:26 -05:00
os.go implement global open file counter using syswrap 2019-03-23 14:52:16 -05:00