From 296179544b625b5b7901d8835b5097078848f723 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Tue, 31 Oct 2023 09:25:19 +0000 Subject: [PATCH] add comment about performance --- src/parse.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parse.rs b/src/parse.rs index f2361e5..5220ab1 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -242,6 +242,8 @@ impl<'a> Parser<'a> { self.index += SIZE + 1; Ok(()) } + // TODO very sadly iterating over expected cause extra branches in the generated assembly + // and is significantly slower than just returning an error _ => { self.index += 1; for c in expected.iter() {