Skip to content

Reconcile CompareInfo code duplicates introduced with Span extension methods #26621

Closed

Description

@ViktorHofer

With dotnet/coreclr#16467 we added methods for various Span extension methods that we added to MemoryExtensions(.Fast).cs. These methods are mostly just code duplicates of their string counterparts which call into an Interop function that accepts a pointer instead of a string. We should try to reconcile the diverged code paths to avoid duplication of huge code chunks. Described in this comment: https://github.com/dotnet/coreclr/pull/16467/files#r169709853

cc @ahsonkhan @tarekgh

Activity

  1. changed the title [-]Reconcile CompareInfo.Unix code duplication because of Span extension methods[/-] [+]Reconcile CompareInfo code duplicates introduced with Span extension methods[/+] on Jun 26, 2018
  2. tarekgh commented on Jun 26, 2018

    @tarekgh
    Member

    I think @ahsonkhan looked at that before when implementing the Span APIs but I don't remember the reason why we didn't do that in the first place.

  3. ViktorHofer commented on Jun 26, 2018

    @ViktorHofer
    MemberAuthor

    right, I talked with Ahson offline and that's a leftover from his work, that's why I opened the issue :)

  4. transferred this issue fromdotnet/corefxon Jan 31, 2020
  5. added this to the Future milestone on Jan 31, 2020
  6. added
    untriaged
    on Feb 23, 2020
  7. ghost locked as resolved and limited conversation to collaborators on Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-System.Globalizationenhancementhelp wanteduntriaged

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions