Skip to content

Conversation

@imikejackson
Copy link
Contributor

When plugins are loaded, a FilterFactory is created and stored for each filter that is in the plugin. If the developer only needs items such as human label, Html summary or other textual items then it is better and quicker to just use the FilterFactory itself instead of instantiating an entirely new Filter object. This leads to a speed up when launching currently.

Signed-off-by: Michael Jackson [email protected]

When plugins are loaded, a FilterFactory<T> is created and stored for each filter that is in the plugin. If the developer only needs items such as human label, Html summary or other textual items then it is better and quicker to just use the FilterFactory itself instead of instantiating an entirely new Filter object. This leads to a speed up when launching currently.

Signed-off-by: Michael Jackson <[email protected]>
@imikejackson imikejackson added API Change Changes the API of any of the libraries Enhancement Code added that makes life easier Optimizations Makes code go faster labels Apr 11, 2019
Copy link
Contributor

@mmarineBlueQuartz mmarineBlueQuartz left a comment

Choose a reason for hiding this comment

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

This looks good to me.

@imikejackson imikejackson merged commit 85e7456 into BlueQuartzSoftware:develop Apr 12, 2019
@imikejackson imikejackson deleted the topic/reduce-creation-of-filters branch April 12, 2019 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Change Changes the API of any of the libraries Enhancement Code added that makes life easier Optimizations Makes code go faster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants