Performance in interaction-handlers
Is there a performance penalty in sapphire for using many interaction handlers for different buttons (one for each button), or should I try to reuse some of them?
Solution:Jump to solution
Can confirm, unless your checks are slow or you have thousands of handlers, you’re not going to notice a performance impact
4 Replies
The performance difference would likely be negligible to none, at most probably a bit more memory, but you ain't gonna notice it.
@kyra 🩵🩷🤍🩷🩵 can you confirm if I'm just talking out of my ass or not?
Solution
Can confirm, unless your checks are slow or you have thousands of handlers, you’re not going to notice a performance impact
Thanks I couldn't find any information online :pepeThink:
Sorry to bother, but I want to know, do interaction handlers work in parallel between them self and listeners or how do they work?
And also merry Christmas :derp:
No, the JS runtime is single threaded