texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.83k stars 345 forks source link

txs starts slowly #3191

Closed octaeder closed 1 year ago

octaeder commented 1 year ago

Environment

Expected behavior

If possible, a faster start of txs. Reason seems to be https://github.com/texstudio-org/texstudio/commit/ebd9fa2dd9551d3909243f8fb79c36056b6640dc.

Actual behavior

I start txs with several tabs open, all from a large master file using includes. With 4.5.2 it takes 14s, same with master from June 28 (https://github.com/texstudio-org/texstudio/commit/4183325d2c06f598807e9a3095065799808094d1). But with yesterdays master it takes 63s, but with current master 30s.

How to reproduce

Maybe use a large master file with includes.

octaeder commented 1 year ago

Improving with https://github.com/texstudio-org/texstudio/commit/a185aac1fb147c08ae5c2af97638cd3cace983da, it takes 24s. That's good.

octaeder commented 1 year ago

Since I assume that nothing more can be done I close the case.

octaeder commented 1 year ago

current master now needs slightly more than 1 minute.

mbertucci47 commented 1 year ago

On my Windows 10 system it's about 45 seconds with one document pre-loaded, longer if there are more.

sunderme commented 1 year ago

without an example which I can test, this information is totally useless. Caching here works well and loading is significantly faster with a release build. Apart from that, the plan is to rework txs load/session restore code, but this will take some time/releases.