[Github-comments] [geany/geany] Avoid re-scanning the string (PR #2962)

elextr notifications at xxxxx
Thu Nov 25 06:45:26 UTC 2021


> According to internet, clang and gcc can optimize strlen to a constant.

Yeah, but depends on what -O settings distros use.

Either way it is scanning 18 chars in a loop thats reading data via a pipe from another process, which involves system calls and possibly process switches ie the difference is immaterial.  I would just let it rescan for simpler code.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2962#issuecomment-978884199
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211124/046707bb/attachment.htm>


More information about the Github-comments mailing list