Add TestMetadataCache to improve CompositeWorkItem build speed - #4300
Conversation
Thanks for the review. At least in this case the usage in in single point so if the attribute fails at first use it should throw at that point. Consecutive calls of course get the cached value but like discussed in one of the threads that kind of stateful attribute usage would be considered invalid. |
|
@mikkelbu Have you had time to look into this? Would be nice to have it merged in. |
|
why is this targeting v3. given we are prepping for v4, i would think this could target master? |
d6d25a9 to
9c23365
Compare
|
I've changed this to target master. |
5e933a8 to
82cc07c
Compare
|
Thanks for rebasing this and resolving conflicts @lahma . You were too quick for me to ask. 😁 |
|
Now worries it was my pleasure, I like the pace that things are going into master 👍🏻 |
manfred-brands
left a comment
There was a problem hiding this comment.
Nice work, more caching.
A few minor comments added.
This does change the behaviour of the actions, but only for badly designed ones that don't put re-initialize stuff in the BeforeTest method. More an item to mention in any release notes.
d21d969 to
10ae97c
Compare
|
@manfred-brands I've done the fixes you requested, I squashed to single commit keep cleaner, PR title and commit text now reflect the new name |
manfred-brands
left a comment
There was a problem hiding this comment.
Thanks for the quick reaction. Nothing more from me
|
Ok, so we can merge @manfred-brands ? |
|
@OsirisTerje I was sitting in the bus when @lahma made his latest changes. Merged now. |
|
Awesome! |
Addresses high memory usage reported in #3858 . Adds
TestCachethe same way there isMethodInfoCacheand caches the action attributes just like in method info cache - other cached items could be added later if needed.Before
After