logoalt Hacker News

IncreasePostslast Friday at 4:02 PM3 repliesview on HN

Good point. Have two programs - one checking every even number and returning odd of not even. And then have a program checking every odd number and returning even if not. Then, a simple program to dispatch to either program randomly, so you end up in the long term with good performance for each.


Replies

hybridtupellast Friday at 10:11 PM

Why not run both and use the result retrieved the fastest.

rdiddlylast Friday at 4:55 PM

Yeeessss! Microservices!

show 1 reply
blauditorelast Saturday at 9:52 PM

That sounds kinda stupid, it would completely destroy the original space savings. Unless the sharding makes it fit within compiler limits.