mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-09 05:04:17 +00:00
When the hardware engine is unavailable, the implementation falls back to a software SHA. This code path is actually rarely used, but it is the top object code consumer according to our bloat analysis tool (40kiB for each instance of the compress function alone). This patch annotates the SHA functions with `#[inline(never)]` to reduce the size of these rarely-used functions. ...it might actually be that on our small-cache system, reducing the in-lining could improve performance as well because it helps the whole routine fit inside L2 cache. Anyways, it's a rarely-used path (I've never seen the code used once tbh) so let's reduce its overhead and keep Xous trim. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||