You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make this faster, I would get rid of the calls to NanNew, which appears to be newing up strings so that it can pass a string like "change", "new" or delete to the listener. Newing up a string per event seems like a lot of overhead to me. I would instead pass back an enum or in other words, an integer (1=="change", 2="new", etc). Then, you don't have to new an object on the heap for every callback you need to make.
Thanks @Taytay for the tip :)
The text was updated successfully, but these errors were encountered: