minor modification
work well now. 6.5 seconds for 500MB data
minor modification. 6.5 seconds for 500MB data