Working on a lil pet project in rust rn and discovered that using Result in the hot path is significantly affecting performance, how do people deal with this?
@cas It is Result by itself or maybe the Error variant is too "heavy"?
@pitbuster not sure, it's just an enum with a few numbers, using thiserror.
@cas @pitbuster that's really weird, maybe the problem is that Result adds a discriminant and makes the original type larger. Sometimes you can fix this by hinting things at the compiler but it really depends on the actual situation.