Skip to content

Conversation

@pinzart90
Copy link
Contributor

@pinzart90 pinzart90 commented Jan 28, 2025

Purpose

Bring back the search bar perf improvements
Passes here https://master-15.jenkins.autodesk.com/view/DYN/job/DYN-Dynamo/job/DynamoBuildscripts/job/master/2968/
Last test to log size:
PID 3552 Finished test: WillNotAddDupWorkspaceDependencyViewExtensionLoadTest with PrivateBytes = 8608387072

(FILL ME IN) This section describes why this PR is here. Usually it would include a reference to the tracking task that it is part or all of the solution for.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

(FILL ME IN) Brief description of the fix / enhancement. Use N/A to indicate that the changes in this pull request do not apply to Release Notes. Mandatory section

Reviewers

(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)

(FILL ME IN, optional) Any additional notes to reviewers or testers.

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of


AnalyticsService.ShutDown();

LuceneSearch.LuceneUtilityNodeSearch = null;
Copy link
Member

@mjkkirschner mjkkirschner Jan 28, 2025

Choose a reason for hiding this comment

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

so what were we leaking? Or rather what were the retention paths? Would make a good tech talk.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

LuceneUtilityNodeSearch holds a reference to the DynamoModel.
So the DynamoModel was not being garbage collected because it still had refs.

foreach (AnnotationModel annotation in Model.Annotations) Model_AnnotationAdded(annotation);
foreach (ConnectorModel connector in Model.Connectors) Connectors_ConnectorAdded(connector);

NodeAutoCompleteSearchViewModel = new NodeAutoCompleteSearchViewModel(DynamoViewModel)
Copy link
Member

Choose a reason for hiding this comment

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

we had two of these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, line 598

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hopefully it does not break serviceMode :)
Looks like the intention was to do not use autocomplete in service mode

@pinzart90 pinzart90 merged commit 5ef1f7b into master Jan 29, 2025
22 of 24 checks passed
@pinzart90 pinzart90 deleted the revert_serach_perf branch January 29, 2025 14:42
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.

3 participants