Repository navigation
Startup optimisation - #1210
Merged
Merged
Startup optimisation#1210
Conversation
stephenhand
requested review from
acedeywin,
gpaoloni,
murilovmachado,
mythilytm,
nickhurlburt and
robert-bo-davis
January 30, 2023 09:39
gpaoloni
approved these changes
Jan 30, 2023
gpaoloni
left a comment
Collaborator
There was a problem hiding this comment.
Awesome finding, using it locally already. Thank you!
murilovmachado
approved these changes
Jan 30, 2023
murilovmachado
left a comment
Contributor
There was a problem hiding this comment.
this will make things run MUCH faster, thanks!
3 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
By default, Flex waits for 10 seconds (!) between initialising plugins and attempting to render anything. An undocumented setting in the pluginService section of the app.config allows this to be adjusted.
Since our startup routine should be robust and not require a blanket delay to work around race hazards like that, I tried setting the delay to 1 millisecond and was gratified to see the startup sequence still appears to work fine.
There might be a more elegant way to handle this, a way in the API to inform the plugin loading system that initialization is complete and rendering can commence, but I haven't seen anything - I've asked Twilio: https://console.twilio.com/us1/support/tickets?frameUrl=%2Fconsole%2Fsupport%2Ftickets%2F11040527%3F__override_layout__%3Dembed%26bifrost%3Dtrue%26x-target-region%3Dus1
NOTE: This will only affect deployment configs, to tesst locally you need to add the same attribute to your local
public/app.configChecklist
Related Issues
Fixes #....
Verification steps