Inlining heuristics in .NET / C# can be hilarious sometimes.

Поділитися
Вставка
  • Опубліковано 20 жов 2024

КОМЕНТАРІ • 10

  • @Hart8
    @Hart8 3 роки тому +13

    My brain is too small for this

  • @1992jamo
    @1992jamo 2 роки тому +1

    What tool are you using to see that? Is it an extension for vscode?

    • @LevelUppp
      @LevelUppp  2 роки тому

      It's something that I wrote: github.com/badamczewski/PowerUp

  • @forestrf
    @forestrf 3 роки тому +1

    Given you have found this, does it mean it will be fixed? Have you reported or fixed it?

    • @LevelUppp
      @LevelUppp  3 роки тому +5

      Heuristics won't be fixed, they can be changed but there always be a way to break it. This specific case doesn't happen on .NET6 but you can still break it, there's just a slightly different method to it.

    • @forestrf
      @forestrf 3 роки тому

      @@LevelUppp Thank you for answering!

    • @abdelrhmanahmed1378
      @abdelrhmanahmed1378 2 роки тому

      @@LevelUppp can you please make a video about that ?

  • @Mr4hitch
    @Mr4hitch 3 роки тому +3

    You dont use params : x,y,z. That compiler dont care about it

  • @DanielMarshall909
    @DanielMarshall909 3 роки тому

    This is somewhat depressing....

    • @LevelUppp
      @LevelUppp  3 роки тому

      This is business as usual for compilers (not just .NET)