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

Removed optimistic session initialization #3937

Merged
merged 1 commit into from
Nov 2, 2019
Merged

Removed optimistic session initialization #3937

merged 1 commit into from
Nov 2, 2019

Conversation

ahmedx2
Copy link

@ahmedx2 ahmedx2 commented Oct 30, 2019

Closes #3770

This small PR removes the optimistic session creation (the createInitialSession() call in line 160 of app/ui/window.js), which causes a bug initialization parameters do not take effect unless the user manually executes a full reload (#3770) e.g. the hypercwd plugin's initialWorkingDirectory config option has no effect until a full reload is run.

After some digging, I've found that this optimistic session creation added for a modest startup time improvement in #3352, so I reckon there will not be an unacceptable increase in startup time for any supported platform.

I figure this PR is ready to merge. Manual testing suggest that these slight changes fix the problem without a noticeable difference in startup time or performance in general.

@Stanzilla
Copy link
Contributor

Nice, thank you!

@Stanzilla Stanzilla merged commit 40eaebf into vercel:canary Nov 2, 2019
@ppot
Copy link
Contributor

ppot commented Nov 3, 2019

i like code removal 🎉

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.

Initial hyper session is not created correctly
3 participants