My brother in christ, please just let me switch on strings. - eviltoast
  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    8 days ago

    I would be disappointed by a compiler that turns an integer switch into a linear search

    I would be very surprised if they do use binary search. Anyone want to check?