Open benazarenko opened 3 days ago
I'm aware of some performance problems after the rewrite. After having the website open for 10 seconds after it has loaded, it should cache the results in your browser, so consecutive loads should be a lot faster.
The work it's doing is parsing and binding all the mcdoc files (which contain the schemas for the generators). Unfortunately that process is not super quick right now (see https://github.com/SpyglassMC/Spyglass/issues/977). The plan in the future is to do most of the expensive operations once on a server or github action.
Hello. Two days ago I tried to open the entity tag generator page and at some point it freezed for ~15 seconds. I'm sure it never happened before. I was using the same page 2 weeks ago and it was good. Website inspector shows me that all this time takes to load bind files.
As I can see, it loads a lot of archived data during bind files task. I have no idea what's happening there (logs give me a lot of tar.gz archive jobs), but 12 seconds is a lot. And this is not a problem with internet. I asked my friend to load the website in incognito mode, and got the same result. Same happens when using a VPN.
As I tried to dig in, I can 90% be sure it's not an internet issue. The tar.gz archive it downloads is ~172KB large. Looks like the problem is binding.
The
item_definition.mcdoc
file is ~11KB large, and extracting it should not take 5s. There is something else.There is something very performance consuming that takes 12 seconds to load the page without cached files.