librasn / rasn

A Safe #[no_std] ASN.1 Codec Framework
Other
199 stars 50 forks source link

Make backtraces as feature, enabled by default #214

Closed Nicceboy closed 10 months ago

Nicceboy commented 10 months ago

This PR makes backtraces optional, while enabled by default.

Sometimes it can be very desireable to disable them totally.

E.g. when fuzzing, with backtraces you get unstable 100-5000 execs per second, but without them it is 50k execes per second (from OER and with AFL) for some simple types.

There might be some other scenarios where performance gets priority over exact error sources.

XAMPPRocky commented 10 months ago

Thank you for your PR!