mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-02-05 04:21:30 -05:00
Avoid quadratic load times: run module passes at the end, and run rtcheck inserter at the end also. Also optimize away some simple situations that the compiler couldn't, like result of __is_bigendian() which is a constant at load time (but not at compile time). If we would have run LLVM's -O1 optimizers these would have been optimized already, but we don't do that for 2 reasons: - optimizations may introduce new bugs - may take a bit longer time Just run some simple transforms, and some custom optimizations for the bigendian case.
67 KiB
67 KiB