Improve responsiveness when encountering large log files

When we hit large log files, the grep would take a long time and build view would hang.