3 ms·
I had an application where I was reading a 3GB text file into memory, directly from and SSD. Using fscanf the speed would top out at around 100-150MB/s. Only af
by gambiting 12y ago
I had an application where I was reading a 3GB text file into memory, directly from and SSD. Using fscanf the speed would top out at around 100-150MB/s. Only after I've switched to fread the data was actually read at the maximum speed of the drive - over 400MB/s. I guess it's due to parsing fscan is doing.
- deleted 12y ago[deleted]
- roghummal 12y agoHint: It's the way data is read when using fscanf. Hint++: Parsing is not the bottleneck.