Skip to content

feature: Update Reactive Generator for performance#94

Merged
ChrisPulman merged 4 commits intomainfrom
CP_ReactivePerformanceUpdate
Oct 28, 2024
Merged

feature: Update Reactive Generator for performance#94
ChrisPulman merged 4 commits intomainfrom
CP_ReactivePerformanceUpdate

Conversation

@ChrisPulman
Copy link
Member

@ChrisPulman ChrisPulman commented Oct 27, 2024

What kind of change does this PR introduce?

update
Fixes #96

What is the current behavior?

Using Syntax Code generation

What is the new behavior?

Update TestHelper to use a single Generic Type to simplify usage
Add starter code to test IViewFor generator
Use Code Analysis 4.6.0
Update Reactive Generator for performance
Remove IsExternalInit

What might this PR break?

The usable generated code has not changed however the file names produced are shortened

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

public static PropertyAttributeData? GetAttributeSyntax(this AttributeData attribute, CancellationToken token)
{
// Retrieve the syntax from the attribute reference.
if (attribute.ApplicationSyntaxReference?.GetSyntax(token) is not AttributeSyntax syntax)
Copy link
Contributor

Choose a reason for hiding this comment

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

Mixing the ISymbol metadata with the Syntax should be reduced as possible, but its generally much more performance to go from the Symbol metadata to the Syntax so likely OK in this case.

@glennawatson glennawatson changed the title Update Reactive Generator for performance feature: Update Reactive Generator for performance Oct 28, 2024
@ChrisPulman ChrisPulman merged commit 21c1557 into main Oct 28, 2024
@ChrisPulman ChrisPulman deleted the CP_ReactivePerformanceUpdate branch October 28, 2024 12:07
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove IsExternalInit

2 participants