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 460.853%
Tree: 10,000 Nodes 1.1744 ms 1.0698 ms -8.90668%
Tree: 100,000 Nodes 8.7379 ms 33.083 ms 278.615%
Compute: 1,000 Nodes 17.423 µs 39.317 µs 125.661%
Compute: 10,000 Nodes 176.51 µs 446.35 µs 152.875%
Compute: 100,000 Nodes 1.7988 ms 14.976 ms 732.555%

Hope you have an awesome day

  • BB_C@programming.dev
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    18 days ago

    Were those nonsensical Difference percentages obtained via an existence that claims intelligence by any chance?

    • TehPers@beehaw.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      18 days ago

      There are enough grammatical errors for me to assume incompetence over malice here. In either case, the percentages were clearly calculated incorrectly, and I’d question the results and want to verify them myself.