3 ms·
Slight? It would turn a 10-min run into over 2 hours.
by dded 13y ago
Slight? It would turn a 10-min run into over 2 hours.
- nly 13y agoWell its not wise to guess about why you experienced this problem. A proper investigation would require a testcase that recaptures it. My hunch would be that you was discarding the std::string between lines (thereby not reusing the buffer and causing additional memory allocation for each line)... but I'm not sure even that would cause a 12 fold slowdown.
- dded 13y agoNope. I doubt I did that, but even if I did, it couldn't explain the slowdown. Sometimes I needed to hold the netlist in memory (as a graph), and thus allocated space for every line anyways. (Actually, up to five times for each line: data structure, device name, source name, drain name, gate name.) Unless I ran out of memory, this never caused a significant slowdown.