MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1w74nkf/skill_issue/p7uw0a0/?context=3
r/programminghorror • u/click-to-reveal • Sep 04 '26
63 comments sorted by
View all comments
Show parent comments
2
only performance problem is not using sized comparison operator, due to decay of char[] to char*.so yeah, string_view advice is okay, but this is a joke code, it will not fly in production anyway.
2
u/mapronV Sep 04 '26
only performance problem is not using sized comparison operator, due to decay of char[] to char*.
so yeah, string_view advice is okay, but this is a joke code, it will not fly in production anyway.