On Fri, 23.08.13 14:09, WANG Chao (chaow...@redhat.com) wrote: > > > - Why not use startswith() instead of first_word()? > > first_word is not equivalent: there must be a word boundary after the > > word: > > Yeah, you're right. I occasionally got carried away at midnight :( > > And I think a inline static version could be a little faster? Right?
Not necessarilly. On today's CPUs often smaller code results in faster execution than avoiding function calls... If we shift this around further we probably should do it properly and play around with benchmarks... Lennart -- Lennart Poettering - Red Hat, Inc. _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel