Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# Fizz Buzz Fast as F*ck
High throughput Fizz Buzz

https://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?