[systemd-devel] [PATCH] shared: rename hasprefix() to startswith(), which is functionally identical and removed

2013-07-12 Thread Shawn Landden
as most (if not all) of the prefix strings are static, these will get forward constant propagation optimized into single memcmp() calls, which should be much better than the non-SIMD hand-rolled version. --- src/journal/journal-send.c | 2 +- src/journal/journald-native.c | 12 ++--

Re: [systemd-devel] [PATCH] shared: rename hasprefix() to startswith(), which is functionally identical and removed

2013-07-12 Thread Kay Sievers
On Fri, Jul 12, 2013 at 5:35 PM, Shawn Landden shawnland...@gmail.com wrote: as most (if not all) of the prefix strings are static, these will get forward constant propagation optimized into single memcmp() calls, which should be much better than the non-SIMD hand-rolled version. -#define