D29808: KSysGuard Network Plugin: Don't use std::regex to parse the network files.

2020-05-23 Thread David Korth
dkorth added a comment. The original version I wrote a few months back as a quick fix to reduce CPU usage. I do agree that the magic numbers shouldn't be hard-coded, since that's not easily maintained, though I'm not sure of the best approach. constexpr strlen() seems like it'd work, or alte

D29808: KSysGuard Network Plugin: Don't use std::regex to parse the network files.

2020-05-17 Thread David Korth
dkorth created this revision. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. dkorth requested review of this revision. REVISION SUMMARY std::regex is slow, so use fixed-field parsing instead. This is an initial version that I've been using for a while with no major