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

Use unchecked list when in non-debug mode #48

Merged

Conversation

gfodor
Copy link
Contributor

@gfodor gfodor commented Jun 5, 2017

In profiling, the default mono List implementation is rather slow, which has a measurable impact with interactions of the managed stack -- for example the RemoveAt operation during Free performs a Shift and Clear operation even thought it is just removing the end of the list.

This PR drops in the latest List implementation of the .NET core and removes additional contract/bounds checks to speed it up. (Note it will only be used outside of DEBUG mode)

@liiir1985 liiir1985 merged commit 41c6734 into Ourpalm:master Jun 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants