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
Converting an event to a Rust struct is a costly operation (not as costly as Lua -> JSON -> Rust would be though). We should thus update the implementation to only make the conversion if necessary.
Implementation:
Check whether either the log level is set to debug, or if there is at least on active events stream.
If yes, convert the event to a struct and continue as usual
If no, just ignore the event
The text was updated successfully, but these errors were encountered:
Oops, you are right, I've updated the issue (to talk about the event stream) 👍 . This is only relevant for the events stream. The units stream is polling based, so there is no unit pushed to the server if there are no active streams and the message stream isn't deserializing a Lua table to a Rust struct (just takes a string).
Converting an event to a Rust struct is a costly operation (not as costly as Lua -> JSON -> Rust would be though). We should thus update the implementation to only make the conversion if necessary.
Implementation:
The text was updated successfully, but these errors were encountered: