New Features in the .NET 9 JIT

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 4

  • @aderitosilvachannel
    @aderitosilvachannel 4 дня назад +3

    This is great! I would really love to know more about that thing about reference types that can be allocated on the stack. Is this predictable to the developer, so the dev can know exactly when a reference object will or will not be stored on the stack?

    • @neonmidnight6264
      @neonmidnight6264 3 дня назад

      If you would like this to be deterministic it is best to just use structs. Struct handling is optimized in .NET's compiler really well, so if it's something you care about - there are already excellent tools to do so.

    • @aderitosilvachannel
      @aderitosilvachannel 3 дня назад

      @@neonmidnight6264 Yes, I agree. But if it was possible to know if, for example, a local `StringBuilder` or a `string` in a specific function would get stored in the stack would be really cool.

  • @Ayalaskin
    @Ayalaskin 4 дня назад +1

    very good work