The Wayback Machine - https://web.archive.org/web/20200604031010/https://github.com/burtonator/polar-bookshelf/issues/1410
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

Try to determine why startup time is so slow. #1410

Open
burtonator opened this issue Apr 30, 2020 · 3 comments
Open

Try to determine why startup time is so slow. #1410

burtonator opened this issue Apr 30, 2020 · 3 comments

Comments

@burtonator
Copy link
Owner

@burtonator burtonator commented Apr 30, 2020

Our startup time is VERY slow for loading the electron app. It's about 4000ms on my machine..

Once Polar 2.0 is up it's SUPER fast.

IT might be that once we ditch bootstrap that this goes away so maybe we delay investigating this until this is resolved.

One idea could be to "monkey patch" the require method and add timing to it directly. this way we can see which scripts are taking the most time to load.

@burtonator
Copy link
Owner Author

@burtonator burtonator commented Apr 30, 2020

only ONE require was called and it was for entry.js and took the entire duration... so that won't work.

@burtonator
Copy link
Owner Author

@burtonator burtonator commented Apr 30, 2020

it looks like the newly imported module has an updated require for some reason... it should be globally patched but for some reason node is rrestoring it.

@thiswillbeyourgithub
Copy link

@thiswillbeyourgithub thiswillbeyourgithub commented May 11, 2020

didn't want to start an issue for this but is there a reason why when I display strace of polar-bookshelf.bin --no-sandbox I have a very fast flow of the following line/error :
(I couldn't copy so here's a picture)

screenshot

Polar is sometimes using most of my cpu for no apparent reason

I get this error no matter what I'm doing with polar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.