Skip to content

Compute and check document indices in parallel#45073

Merged
6 commits merged intodotnet:masterfrom
CyrusNajmabadi:farPerfIndexes
Jun 11, 2020
Merged

Compute and check document indices in parallel#45073
6 commits merged intodotnet:masterfrom
CyrusNajmabadi:farPerfIndexes

Conversation

@CyrusNajmabadi
Copy link
Contributor

This cuts down the time it takes for my computer to perform this portion of FAR (on workstation GC) by a solid 40%.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner June 11, 2020 03:30
Copy link
Member

@dibarbet dibarbet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just want to understand the duplicates question, then happy to sign off

@CyrusNajmabadi CyrusNajmabadi requested a review from dibarbet June 11, 2020 08:21
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approval

using (Logger.LogBlock(FunctionId.FindReference_CreateDocumentMapAsync, _cancellationToken))
{
var finalMap = new ProjectToDocumentMap();
using var _ = ArrayBuilder<Task<(ImmutableArray<Document>, ISymbol, IReferenceFinder)>>.GetInstance(out var tasks);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 In this case, we know the exact number of tasks. We should create the required array directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's reasonable. i can make that cahnge in one of my other FAR PRs that build off of this. :)

@ghost ghost merged commit 4cdb2de into dotnet:master Jun 11, 2020
@CyrusNajmabadi CyrusNajmabadi deleted the farPerfIndexes branch July 8, 2020 18:00
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants