#Can I cache recipe changes/general KubeJS stuff somehow
58 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
you cant since those changes arent made directly on the mods
and reloading will reload the data from the mods, undoing your changes
besides this isnt impacting load times
like youre talking nanoseconds or at most milliseconds for a major pack's scripts
You might be able to temporarily disable the recipe scripts while you’re working on these changes so that the recipe processor doesn’t trigger.
Keep in mind recipe schemas.
It does have to process all recipes for filter matching operations
Would it be easier to filter everything then exclude certain stuff?
That might improve performance
we're still talking about practically zero time...
Not necessarily, I have noticed slight hitches on large packs with weak machines
But you're right that it shouldn't be too noticeable
its the removing tags that really effects load times, like a significant amount, ill show the code in a bit but it's a substantial amount and unrelated to my hardware
if this doesn't affect your load times I assume you have a quantum computer
Paste version of message.txt from @cobalt cave
and it's mainly this
e.removeAllTagsFrom(item)
causing it
that list is triggering me
A
A
i might actually test the load speed tomorrow out of curiosity
it increases it by like 25x

ig removing every tag from every item is hard
You could sort that array to make it easier to read lol
wdym
the order is from /kjs dump_registry minecraft:item
I don't know if it is
I can see an issue
Every time you loop through that array you're adding the whole array to the hidden items tag
🤔
Move that e.add() statement outside of the loop
like into a seperate serverevents.tag?
No, just outside the forEach
ohhh
trying rn
HOLY CHRIST
@reef swan ily
yea that completely fixed it😭
its back to taking like .3 seconds again
You were effectively looping through the entire array in the entire array
😭 😭 😭
Which made the performance exponentially worse
Ticket re-opened!
Np!
Really.. on my screen that sent before the ticket was closed
Just reopen and close it so the ticket gets properly closed
lmao alr