Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-17623

.NET: Thin 3.0: Perf: review exception throw sites

    XMLWordPrintableJSON

Details

    Description

      throw statement prevents inlining. Review all throw statements:

      • Internal sanity checks can be replaced with Debug.Assert
      • When throw is still necessary, and the method is small (candidate for inlining) - move throw logic into a separate method.

      https://devblogs.microsoft.com/dotnet/performance_improvements_in_net_7/#exceptions

      Attachments

        Activity

          People

            ptupitsyn Pavel Tupitsyn
            ptupitsyn Pavel Tupitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: