Matt Godblolt's web app is a fun way to explore these question.
https://godbolt.org/z/q6oz64

On Wednesday, 10 February 2021 at 10:12:18 UTC cuiw...@gmail.com wrote:

> compare two byte slice,will convert to compare between two string, and my 
> question is how golang compare two string, i don't think that it just 
> compare the len and then comapare bytes in string one byte by one byte, it 
> should have some optimization?where is the code in compiler generate the 
> compare codes?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6f25160d-2f2f-45d5-9db5-02955650afa8n%40googlegroups.com.

Reply via email to