-
Notifications
You must be signed in to change notification settings - Fork 839
Span for .. in .. do optimization
#6213
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
Conversation
for .. in .. do optimizationfor .. in .. do optimization
|
Make it snappy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only small nitpick. Good work. Thx
|
This is almost done, trying to get tests to pass under .net core. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to remove these, or is this temporary? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I believe so. I moved these tests to FSharp.Tests.FSharpSuite instead.
|
This is ready I believe. |
for .. in .. do optimizationfor .. in .. do optimization
|
I would like to get this into master asap since it fixes tests as well. |
|
If tests pass, this should now be completely ready. |
|
This is really really ready. :) Just needs a review. |
|
@dsyme, could you run your eyes over this one last time please. Thanks Kevin |
|
Reverted in #6558 due to a test failure. |
* Trying to optimize span in for loop * Added Span_GetItem call * Almost success with optimization * Fixed code gen * Added Span optimization tests * Added ReadOnlySpan opt * Cleaning up tests * Moving tests around * Trying to figure out span tests * Trying to fix some tests * Trying to get some more tests passing * Fixed range * Trying to get tests to pass again * Fixing tests for netcore * Fix build * When a solution becomes unloaded, we should clear F#'s cache (dotnet#6420) * Changing if directives * Simplifying * Using a type shape for span optimization * Fixing one test * Drastically simplified looking at the type shape for Span * Simplified a bit more * RunScript has expected error messages * Add back net472 * Feedback * Update SpanOptimizationTests.fs * Update SpanOptimizationTests.fs
Resolves this issue: #6195
Optimizes
for .. in .. doon span types by using the indexer instead of the enumerator.Remaining work: