Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carsonradtke/fizzbuzz-fastasf
High throughput Fizz Buzz
https://github.com/carsonradtke/fizzbuzz-fastasf
Last synced: 25 days ago
JSON representation
High throughput Fizz Buzz
- Host: GitHub
- URL: https://github.com/carsonradtke/fizzbuzz-fastasf
- Owner: carsonRadtke
- License: mit
- Created: 2023-10-07T16:33:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-08T00:03:07.000Z (over 1 year ago)
- Last Synced: 2024-10-29T11:23:04.651Z (2 months ago)
- Language: C
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fizz Buzz Fast as F*ck
High throughput Fizz Buzzhttps://codegolf.stackexchange.com/questions/215216/high-throughput-fizz-buzz
There have been several improvements from the naive implementation.
Namely:
- manual loop unraveling
- custom buffering for `write(2)` instead of `printf(3)`This has increased the throughput from 236 MiB/s to 1.04 GiB/s.
In the future, there are a couple of optimizations I envision.
1. Vector operations. Use `#include `?
2. Branchless programming. What kind of performance improvement would this provide?