1brc in Swift #734
khlopko
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I have attempted to solve it in Swift, so far made it to run it 6.5s on MacBook Pro M1 with 10 cores and 16GB memory.
The solution uses Swift Concurrency to parallelise work. There isn't a lot of tricks I've made, so there is a room for improvements. Currently parsing seems to be the most time consuming part.
Short overview:
Repo: https://github.com/khlopko/1brc-swift
Beta Was this translation helpful? Give feedback.
All reactions