Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast unpack_single #43

Merged
merged 17 commits into from
Jul 19, 2024
Merged

Fast unpack_single #43

merged 17 commits into from
Jul 19, 2024

Conversation

lwwmanning
Copy link
Member

@lwwmanning lwwmanning commented Jul 19, 2024

Compared to develop, on my M2 Macbook Air. This benchmark unpacks a full FastLanes batch of 1024 elements one-at-a-time using unpack_single. Other benchmarks unaffected.

989.37 ns / 1024 = 0.966 ns per element

Screenshot 2024-07-19 at 14 00 15

(This is with the function inlined into the benchmark! It's actually about ~1.5us per 1024 elements)

@lwwmanning
Copy link
Member Author

binary size increased from 3.4M to 3.5M

@gatesn gatesn changed the title sub-nanosecond (!) unpack_single Fast unpack_single Jul 19, 2024
@gatesn gatesn merged commit 48eb308 into develop Jul 19, 2024
2 checks passed
@gatesn gatesn deleted the wm/unpack-single-const branch July 19, 2024 14:02
@github-actions github-actions bot mentioned this pull request Jul 19, 2024
lwwmanning pushed a commit that referenced this pull request Jul 19, 2024
## 🤖 New release
* `fastlanes`: 0.1.6 -> 0.1.7

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.1.7](v0.1.6...v0.1.7) -
2024-07-19

### Other
- Fast unpack_single
([#43](#43))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants