-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Script load times increased since dev28 #636
Comments
Kinda noticed that too. |
Confirm, on dev 27 it took 6 seconds to load this very simple skript.
|
I have the same problem |
Takes 1 minute+ for my some skripts :) |
Need to do some profiling to figure out what is causing this. I hope it is just some random mistake I made - if throwing vectors in causes it, I'll have interesting time trying to fix it. |
@tuanjr For me it takes <1 second with dev25 and about same time with latest version. I need some test material, a script that:
To clarify: I'm not interested about, for now, any even potentially addon-related slowdowns with latest Skript. I will take look at them after I have done everything I can to get Skript itself running at least as fast or as slow as before. From what I have seen now, SkriptParser's parse_i is hotspot and slow, but that is nothing new. It has been so for years... |
you should add some custom timings to the parser to see how long it takes to load each effect/expression and a few timings to see whats happening in each syntax parse |
I'll consider that once someone actually provides test scripts I asked for in previous post. |
The first lines of code of my script are pure sk and are taking 2 seconds to load:
The full script was taking < 1s before. |
Can confirm, tested and it takes around 1.916 seconds with the dev28 whereas it's around 0.901 seconds with the dev25 and 0.6 seconds with the dev27. |
Ok, this seems useful. I'll try to figure out what is wrong and how to fix it. Also nice to know that dev27 actually improved performance by about 33% :) |
I have disabled number to vector converter for next release to solve another issue. When it is out, please test if it helps with performance. |
It certainly didn't help make my test go any faster :c (compiled from source) |
I'm out of ideas. Will try something once I'm back home (in about week), but it might break stuff even more. Help would be appreciated... |
dev25 took 4 seconds to reload my script, |
@nutella25 he will not change the code just because an addon which isn't supported anymore is conflicting with it, you can just enable the |
Someone change the title to "28c and 29 take way longer to load scripts." |
Nevermind, saying "increased" is better :P |
Should I keep using dev29 or use a version that's older? |
If the load times aren't an issue for you there's no real reason to not use dev29. If you don't want to use dev28 or dev29 because of the load times though, I'd go back to dev25, since dev26-27 both had a number of issues, mainly with chat stuff due to the JSON chat support. |
@TheBentoBox I'm using json.sk (https://www.spigotmc.org/resources/json-sk.8851/). Does that count as json chat support because I need that. Also the load times are a real issue for me, my skripts in total take 1 minute and 14 seconds to load as of my last one. So if I do /skript reload scripts it crashes the server, so instead I have to restart the server (which isnt a problem since no one really joins on it) but it's still a real hassle :( |
This is prob not the best suggestion, however, what if you just allow some features to be turned off/on through the config? It seems they increased post-25 so basically one could turn off the features causing the load times while keeping ones that don't on, so it's at least something new :) Anyways, good luck on this and it is immensely appreciated! |
Well, this is something that Mirreski wanted to do (look at the |
Maybe not my worst idea then lol There are some bugs that I wish I could have fixed, however the exponential load times of the new versions make it impossible to run. I understand that it's really hard to fix all the bugs though so I won't complain, just my reasoning for the suggestion. |
I have changed parser a bit, and will perform further changes either for next release or the release after that. While fixing a parser bug, I noticed that there are few relatively easy ways to improve parsing performance. |
That sounds awesome! Can't wait! Thanks a ton man! |
That's from July, still working on it? |
I have still not received sufficient test case, which is a script which take 1+ minutes to parse with dev25, parses way slower with latest release and does not use addons. Do you have one, @bloggy? Edit: I mean, I do have some test files, but they do not seem to parse much faster with dev25... |
I am sure that I have NO script that is pure skript without addons, but I wonder why u are unable to reproduce it? There must be something happened to the parser making it so slow? EDIT: But it isn't hard to make a skript that takes forever to reload with the latest skript version. Just copy / paste the same events and stuff in the same file over and over again. The more lines it has, the longer the parser takes to do its job. Reloading the skript in my link even kicks me out of my server (time out / connection lost). Btw. copying the lines of that script again and putting them at the end of the same file and doing a reload -> will crash my server because skript is freezing it then. EDIT 2: Reloading the same script as linked will take 9 seconds to reload on skript v2.2-dev25. For me, having 58 scripts, Skript is unusable until you fix the parser loading time. :-( |
30 seconds vs. 9 seconds is probably good enough. I can probably use your test script to figure out what is wrong, given enough time for debugging. I guess that is what I will be doing next weekend. Wish me luck :) |
Done, closing when next release is out. Uhh, that took a long. |
The hero we need! |
Really? You fixed it so fast? :-) Mind sharing what the issue was? And when will you release the update? I really need it :-) Thanks for your time and effort! |
@bloggy It appears to have been the |
@bloggy you're still able to get the build which is supposed to fix this with the nightly builds repository: Be aware that these builds aren't stable at all. |
Right now nightly builds are 100% broken due to other changes. Maybe tomorrow... |
Can you please tell us when you are planning on releasing the fixed version? Still unable to use Skript with 1.12 because of this bug. :-( Hope you can push an update for this. |
He fixed it in recent commits, you can check out the nightly build repo (linked above) to try these versions |
@bloggy dev25 works completely fine with 1.12.0 |
I do not have time to work on Skript right now, hopefully next weekend or so changes this. |
@TheBentoBox Also tried the latest nightly build but then all of my skript commands stop working (it always says: unknown command). But does not throw any errors. |
@bloggy Are you on 1.12.0 or a newer one? (1.12.1/1.12.2) |
I am always on the latest paper version (which is 1.12.2) |
That's the issue, which is why I specified 1.12.0 in my comment above. You can use dev25 on 1.12.0 just fine without load time issues. |
@bloggy New release is out. And indeed, nightlies had broken commands - I fixed it today. |
Woo!
On Fri, Oct 27, 2017 at 10:08 AM bensku ***@***.***> wrote:
@bloggy <https://github.com/bloggy> New release is out. And indeed,
nightlies had broken commands - I fixed it today.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#636 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AcDjS7B-_FaGsXUZHMKzXAJINkUfzu3Iks5swg4igaJpZM4Nvd2J>
.
--
Sam1370
Novice computer programmer
phone: 623-688-2006
website: http://procyon.com/~sam
email: sluce1@pvlearners.net
skype: Sam1370
…--
Emails and other correspondence to and from Paradise Valley School District
are subject to public disclosure, upon request, according to Arizona Public
Records Law (A.R.S. §39-121, et seq.) and corresponding State records
retention requirements, unless the content is specifically exempt from
disclosure by a state or federal law.
|
Hello again Bensku.
I've noticed a big problem in the new 28c version of Skript. My scripts are taking way more time to load.
28c and 29
Took ~ 3 seconds to load.
27
Less than 1 second to load.
My script is this one: https://hastebin.com/qehorawava.vbs
Hope you can fix it! Thanks!
The text was updated successfully, but these errors were encountered: