Hi everyone! I want to introduce a project that I’ve been working on for 6 days with ARandomOSDever. It currently has only a few layout functions: Spacing, Direction (Row, Column), Padding, Margin, Min/Max Size, Align, and it already supports no std. I’m sharing this with you to get feedback, both good and bad. I would really appreciate your thoughts
GitHub repo: https://github.com/dest-hq/axes
Crates: https://crates.io/crates/axes
I’m not entirely sure, yet why Axes performs faster than Taffy, maybe it’s because Taffy has many layout functions that affect performance.
Here’s a benchmark (Axes 0.2.0 vs Taffy 0.9.2).
| Benchmark | Axes | Taffy | Difference |
|
|
|
|
|
| Tree: 1,000 Nodes | 15.889 µs | 89.114 µs | 139.472% |
| Tree: 10,000 Nodes | 1.1744 ms | 1.0698 ms | 4.45988% |
| Tree: 100,000 Nodes | 8.7379 ms | 33.083 ms | 116.426% |
| Compute: 1,000 Nodes | 17.423 µs | 39.317 µs | 77.1731% |
| Compute: 10,000 Nodes | 176.51 µs | 446.35 µs | 86.6455% |
| Compute: 100,000 Nodes | 1.7988 ms | 14.976 ms | 157.107% |
Hope you have an awesome day
Developer @mxghj@programming.dev