@cryptotaxi247 / netdata-1 / commits / 3329a872c

add comment about switch optimization

Costa Tsaousis (ktsaou) committed Feb 18, 2018 at 02:30 UTC 3329a872c20f356c132981cc5644899a08d47cbe
1 file changed +1
src/procfile.c
+1
@@ -160,6 +160,7 @@ static void procfile_parser(procfile *ff) {
160 PF_CHAR_TYPE ct = separators[(unsigned char)(*s)];
161
162 // this is faster than a switch()
163 + // read more here: http://lazarenko.me/switch/
164 if(likely(ct == PF_CHAR_IS_WORD)) {
165 s++;
166 }