Skip to content

SizeLimitedCache should use TryGetValue #4828

Closed

Description

@IAmTheCShark

There is two Dictionary<TKey, TValue>.ContainsKey followed by Dictionary<TKey, TValue>.get_item calls that can be improved by using Dictionary<TKey, TValue>.TryGetValue.

This can potentially shave off a few miliseconds when scrolling through large GridViews.

image

Activity

  1. IAmTheCShark commented on Jul 18, 2021

    @IAmTheCShark
    Author

    If I understand the contribution guidelins correctly, this needs to be marked triage approved before i could possibly create a pull request, right?

  2. lindexi commented on Jul 19, 2021

    @lindexi
    Member

    @IAmTheCShark I think so.

  3. added
    Performance
    on Jul 20, 2021
  4. added this to the Future milestone on Aug 27, 2021
  5. removed this from the Future milestone on Mar 6, 2025
  6. locked and limited conversation to collaborators on Apr 6, 2025
  7. self-assigned this
    on Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚧 work in progressPerformance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions