You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2022/10/16 19:50:00 UTC

[GitHub] [lucenenet] NightOwl888 opened a new pull request, #691: SWEEP: Prefer 'AsSpan' over 'Substring' when span-based overloads are available

NightOwl888 opened a new pull request, #691:
URL: https://github.com/apache/lucenenet/pull/691

   Fixes #675.
   
   While the System.Memory package allows the use of `ReadOnlySpan<T>` in all target frameworks, the methods overloads that accept `ReadOnlySpan<T>` parameters are only available in `net6.0` and in most cases, `netstandard2.1`. Therefore, at least for this use case, it was impractical to use System.Memory and we have new conditional compilation features to enable the `AsSpan()` calls when the APIs exist to utilize them.
   
   - FEATURE_STRING_CONCAT_READONLYSPAN (`net6.0` only)
   - FEATURE_NUMBER_PARSE_READONLYSPAN (`net6.0` and `netstandard2.1` only)
   - FEATURE_STREAM_READ_SPAN (`net6.0` and `netstandard2.1` only)
   - FEATURE_STRINGBUILDER_APPEND_READONLYSPAN (`net6.0` and `netstandard2.1` only)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [lucenenet] NightOwl888 merged pull request #691: SWEEP: Prefer 'AsSpan' over 'Substring' when span-based overloads are available

Posted by GitBox <gi...@apache.org>.
NightOwl888 merged PR #691:
URL: https://github.com/apache/lucenenet/pull/691


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org