Closed daladim closed 2 years ago
Note: this PR, along with another one I haven't pushed yet (and that will depend on this one) drastically improves performance. Handling a message, checking its event ID, and parsing a property will be ~4 times faster (and even up to ~12 times faster if the event contains variable-length strings).
This depends on #36, that must be merged first.
This PR changes the way
Parser
s work and own their data.std::iter::Iterator
over a getter with explicit indices, that must be bound-checked)EVENT_RECORD
), so that it can be reused over variousEVENT_RECORD
s.&mut
s and introducing interior mutabilityIt is probably easier to review this PR commit-by-commit.
Also refs #18 and #25