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:
Can confirm, unless your checks are slow or you have thousands of handlers, you’re not going to notice a performance impact
Jump to solution
4 Replies
SirH
SirH4w ago
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
kyra
kyra4w ago
Can confirm, unless your checks are slow or you have thousands of handlers, you’re not going to notice a performance impact
nijama.dev
nijama.devOP4w ago
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:
kyra
kyra4w ago
No, the JS runtime is single threaded

Did you find this page helpful?