[systemd-devel] [PATCH] Replace hasprefix() with startswith()

Kay Sievers kay at vrfy.org
Wed Aug 21 03:05:03 PDT 2013


On Wed, Aug 21, 2013 at 8:36 AM, WANG Chao <chaowang at redhat.com> wrote:

> --- a/TODO
> +++ b/TODO
> @@ -96,8 +96,6 @@ Features:
>
> -* do we really need both hasprefix() and startswith()?

It needs a little bit more:
  - the open-coded startswith seems really slow, it should not get more users
  - hasprefix can no longer be compile-time optimized, which is not good

We might want something like this:
  http://lists.freedesktop.org/archives/systemd-devel/2013-July/011860.html

Thanks,
Kay


More information about the systemd-devel mailing list