On Tue, Nov 24, 2015 at 4:28 PM, Eric Covener <cove...@gmail.com> wrote: > On Tue, Nov 24, 2015 at 10:21 AM, Jim Jagielski <j...@jagunet.com> wrote: >> For these types of paths, where we use a switch/case against >> the 1st char of the token, the real reason why we used that >> impl was to avoid the (expected) expensive string comparison. > > Maybe naively, I thought we were saving some potential function > call overhead here rather than some strcasecmp overhead.
I agree, the switch'ed code is likely to be more efficient because of that (unless we inline casecmpstr[n], but that's not a good idea IMHO). I'll modify Chritophe test a bit (more) to check that...