Add basic benchmarks and CI

This commit is contained in:
Lol3rrr
2024-10-17 17:43:11 +02:00
parent 195d2fbc15
commit 52d58efa23
8 changed files with 209 additions and 14 deletions

View File

@@ -12,9 +12,9 @@ macro_rules! define_event {
impl $name {
#[allow(unused_mut)]
fn parse(keys: &[crate::csgo_proto::csvc_msg_game_event_list::KeyT], event: crate::csgo_proto::CMsgSource1LegacyGameEvent) -> Result<GameEvent, ParseGameEventError> {
$(let mut $field: Option<RawValue> = None;)*
let mut remaining = std::collections::HashMap::new();
let mut remaining = std::collections::HashMap::new();
for (k, f) in keys.iter().zip(event.keys.into_iter()) {
let name = k.name();