Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRESIDECMS-2944 outputView & outputViewlet #1536

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from

Conversation

DominicWatson
Copy link
Contributor

Adds more options for developers with regards rendering views and viewlets. See https://community.preside.org/t/an-interesting-performance-problem-and-proposed-new-helpers-to-alleviate/178/2

…Viewlet

These can be used by product and app developers to streamline including
of views and viewlets in such a way that they are directly buffered to
output rather than being saved multiple times when renderView() calls
are nested multiple layers deep.

commit 77f1b72
Author: Dominic Watson <watson.dominic@gmail.com>
Date:   Thu Sep 26 15:08:32 2024 +0100

    [twgit] Init feature 'feature-PRESIDECMS-2944_buffered-output-functions'.
Copy link

github-actions bot commented Sep 27, 2024

Test Results

    1 files  ±0    109 suites  ±0   2m 37s ⏱️ -10s
1 734 tests ±0  1 731 ✅ ±0  3 💤 ±0  0 ❌ ±0 
1 737 runs  ±0  1 734 ✅ ±0  3 💤 ±0  0 ❌ ±0 

Results for commit 28b4c95. ± Comparison against base commit ff2c071.

♻️ This comment has been updated with latest results.

deferredViewlet = requestContext.getDeferredViewlet();
viewletArgs = requestContext.getViewletArgs( viewletArgs );
}
requestContext.popViewletContext();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move this higher up and return early? (ie before if ( IsNull( local.result ) )

if ( !IsNull( local.result ) ) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, because requestContext.getViewletView(), etc. all depend on the viewlet context being the current viewlet. Can/must pop it after that.

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.

2 participants