tikv / fail-rs

Fail points for rust
Apache License 2.0
332 stars 39 forks source link

Reduce overhead when FAILPOINTS is empty #71

Open quark-zju opened 1 year ago

quark-zju commented 1 year ago

Reduce fail_point! overhead with empty FAILPOINTS from about 9ns to 0.3ns. This could be useful when the failpoints feature is enabled but FAILPOINTS are not set most of the time.