Make REPL faster when receiving large amounts of data (fix #303)