Performance Improvements

Reduced memory usage and long stop-the-world GCs by hinting appropriate
times for garbage collection and limiting heap size for OS X.