Skip to content

C#: Cache NamedElement::getLabel()#674

Merged
calumgrant merged 3 commits into
github:masterfrom
hvitved:csharp/cache-get-label
Dec 17, 2018
Merged

C#: Cache NamedElement::getLabel()#674
calumgrant merged 3 commits into
github:masterfrom
hvitved:csharp/cache-get-label

Conversation

@hvitved
Copy link
Copy Markdown
Contributor

@hvitved hvitved commented Dec 12, 2018

Also includes two other minor changes.

The reason for caching getLabel() is that it can take quite a while to compute, and it may be recomputed between query runs. Once we have #590 in (for the 1.20 release), this change will be redundant, but there there is no harm in caching getLabel() for future uses.

Using the `forceCachingInSameStage()` trick, we can get rid of the non-cached version
of local flow, while still computing it in the same stage.
@hvitved hvitved added the C# label Dec 12, 2018
@hvitved hvitved requested a review from calumgrant December 12, 2018 12:20
@hvitved hvitved requested a review from a team as a code owner December 12, 2018 12:20
@calumgrant calumgrant merged commit dbd0c7e into github:master Dec 17, 2018
@hvitved hvitved deleted the csharp/cache-get-label branch December 17, 2018 14:29
cklin pushed a commit that referenced this pull request May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants