[systemd-devel] [PATCH v2] 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. --- TODO | 2 -- src/journal/journal-send.c | 2 +- src/journa

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

2013-07-12 Thread Lennart Poettering
On Fri, 12.07.13 08:42, 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. They are function

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

2013-07-12 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Jul 12, 2013 at 06:00:38PM +0200, Lennart Poettering wrote: > On Fri, 12.07.13 08:42, 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 > > s

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

2013-07-12 Thread Lennart Poettering
On Fri, 12.07.13 18:38, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > On Fri, Jul 12, 2013 at 06:00:38PM +0200, Lennart Poettering wrote: > > On Fri, 12.07.13 08:42, Shawn Landden (shawnland...@gmail.com) wrote: > > > > > as most (if not all) of the prefix strings are static, these