You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
So in the case that the user retrieved the child content: __tagHelperExecutionContext.ChildContentRetrieved you will end up copying the result again before writing it (no bueno).
Now it's also important to re-copy each time the GetChildContentAsync method is called so multiple TagHelper authors can see the original content (without worrying about someone else modifying it); you have this part covered.
You'll need to add a capability to retrieve the original, uncopied version for the page to use in the else if (__tagHelperExecutionContext.ChildContentRetrieved) clause.
The text was updated successfully, but these errors were encountered:
The work item here is really to profile our new changes and see what still lights up as a hotspot for allocations and copying. The comments linked here called out a case that we might want to optimize, but the work that we need to do is much broader than what's called out above.
Quoting Taylor's comment:
You'll have to add a bit more to make the copying work as expected/performantly. The generated code that calls into this method looks like:
So in the case that the user retrieved the child content:
__tagHelperExecutionContext.ChildContentRetrieved
you will end up copying the result again before writing it (no bueno).Now it's also important to re-copy each time the
GetChildContentAsync
method is called so multiple TagHelper authors can see the original content (without worrying about someone else modifying it); you have this part covered.You'll need to add a capability to retrieve the original, uncopied version for the page to use in the
else if (__tagHelperExecutionContext.ChildContentRetrieved)
clause.The text was updated successfully, but these errors were encountered: