Closed klensy closed 1 year ago
Read encode table as &[u8; 768] instead of &str, so we statically know offsets and can skip bound checks, making it branchless.
&[u8; 768]
&str
https://rust.godbolt.org/z/r8bo3M9TP
Looking at function size, it can be marked as inline?
inline
Added inline.
Read encode table as
&[u8; 768]
instead of&str
, so we statically know offsets and can skip bound checks, making it branchless.https://rust.godbolt.org/z/r8bo3M9TP