messense / crfs-rs

Pure Rust port of CRFsuite: a fast implementation of Conditional Random Fields (CRFs)
MIT License
28 stars 11 forks source link

Why Use Universal2 instead of aarch64? #13

Closed after-ephemera closed 1 year ago

after-ephemera commented 1 year ago

This is sort of a meta issue. I arrived here from the maturin-action examples and I noticed that crfs builds both an x86 and a universal2 binary. Is there a reason for doing both and not just universal2 or x86 and aarch64?

messense commented 1 year ago

x86_64 to support older macOS, universal2 is good for small sized library and on Apple Silicon Mac it supports switching to x86 via arch -x86_64 python when you need to use x86_64 for some reasons, but if it grows too big, use aarch64 might be better.