Task: Optimize MATLAB File Reading Performance
Task: Optimize MATLAB File Reading Performance: a task in Terminal-Lego-15k (Harbor dataset). You need to optimize a MATLAB script that reads a large text file containing two integers per line. The original implementation uses str2num which is extremely slow for processing millions of lines.
The task
You need to optimize a MATLAB script that reads a large text file containing two integers per line. The original implementation uses `str2num` which is extremely slow for processing millions of lines.
Part of PrimeIntellect/Terminal-Lego-15k.