Registry Mirror
Skip to content

Optimize implementation of Array.Fill. #7049

Description

@jamesqo

The Array.Fill api which was just added is a very naive implementation. We should look into the perf benefits of implementing it in C++ and doing things like memset for bytes/avoiding multiple type-checks for reference types. Relevant comment: dotnet/coreclr#8137 (comment)

Activity

  1. jamesqo commented on Nov 28, 2016

    @jamesqo
    ContributorAuthor

    @jnm2 It is going to be done in unmanaged code.

  2. gkhanna79 commented on Mar 5, 2017

    @gkhanna79
    Member

    @danmosemsft PTAL

  3. kouvel commented on Jul 27, 2017

    @kouvel
    Contributor

    Could look at Span.Fill as well

  4. transferred this issue fromdotnet/coreclron Jan 31, 2020
  5. added this to the Future milestone on Jan 31, 2020
  6. added
    untriaged
    on Feb 26, 2020
  7. removed
    untriaged
    on Jun 24, 2020
  8. ghost added
    in-pr
    on Apr 16, 2021
  9. ghost removed
    in-pr
    on Apr 17, 2021
  10. xtqqczze commented on May 10, 2021

    @xtqqczze
    Contributor

    @GrabYourPitchforks #51365 didn't touch the Array.Fill implementation, should this issue be reopened?

  11. GrabYourPitchforks commented on May 10, 2021

    @GrabYourPitchforks
    Member

    @xtqqczze Whoops, good catch.

  12. ghost added
    in-pr
    on May 11, 2021
  13. ghost removed
    in-pr
    on Jun 22, 2021
  14. ghost added
    in-pr
    on Jun 22, 2021
  15. ghost removed
    in-pr
    on Jun 24, 2021
  16. ghost added
    in-pr
    on Jun 24, 2021
  17. ghost removed
    in-pr
    on Jun 25, 2021
  18. ghost added
    in-pr
    on Jun 25, 2021
  19. ghost removed
    in-pr
    on Jun 27, 2021
  20. ghost added
    in-pr
    on Jun 27, 2021
  21. ghost removed
    in-pr
    on Jun 30, 2021
  22. ghost locked as resolved and limited conversation to collaborators on Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Runtimetenet-performance

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions