Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposed list optimizations #2436

Open
wants to merge 1 commit into
base: 4.0
Choose a base branch
from

Commits on Dec 19, 2023

  1. Exposed list optimization. This handles unnecessary work with array. …

    …Also, making unused items of array to default makes us iterate other all array every time, this slows work of our application dramatically. I believe, that you should do this somehow the other way. At lease, if you want to ensure handling refs, check if your item is valueType, so you would not iterate other all array trying to set defaults which slower CPU. Also, you should compare sizes not with items.Length, but with Capacity.
    alexfrosts committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    aaaee5a View commit details
    Browse the repository at this point in the history