Skip to main content

Module error

Module error 

Source
Expand description

§PERFORMANCE CRITICAL MODULE

WARNING: This module is highly performance-sensitive. Changes to error constructor attributes (#[inline], #[cold], #[track_caller]) can impact serialization/deserialization performance throughout the entire codebase.

§Why This Module Is Performance Critical

Error constructors are called in every buffer read/write operation and type check. Even though these functions are rarely executed (error paths), their mere presence and inlining behavior affects how LLVM optimizes the hot paths (successful operations).

Enums§

Error
Error type for Fory serialization and deserialization operations.

Constants§

PANIC_ON_ERROR

Functions§

should_panic_on_error
Check if FORY_PANIC_ON_ERROR environment variable is set.