Skip to content

Commit f28bd58

Browse files
committed
Add target-cpu RUSTFLAGS for SIMD performance
Related: #5
1 parent b512aa7 commit f28bd58

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build binaries
22

33
on: workflow_dispatch
44

5+
env:
6+
RUSTFLAGS: "-C target-cpu=x86-64-v3"
7+
58
jobs:
69
build:
710
name: Build

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ $ make
104104
# make install
105105
```
106106

107+
For maximum efficiency, use `RUSTFLAGS="-C target-cpu=native"` when running make, if portability is not an issue.
108+
107109
## License
108110
Stringsimile - tool for comparing target strings from JSON-structured streams against a large set of other strings using rules such as Levenshtein, Jaro, Soundex, IDN Confusables and more.
109111
Copyright (C) 2025 Quad9 DNS

0 commit comments

Comments
 (0)