Re:Show HN: Every Day Is Pi Day
by ilogik on Tuesday March 14, 2017 @09:27AM
(#13867309)
I wonder if it includes more digits than necessary :)
[ Parent
| on HN ]
That's easy to check even with just ctrl+f: the last six digits are 422990 which occur 8 times throughout that string. Hence, we could remove at least the last digit without losing anything.
Re:Show HN: Every Day Is Pi Day
by oneeyedpigeon on Tuesday March 14, 2017 @12:20PM
(#13868845)
It also includes sequences that can never match such as "999". I wonder if overwriting those with a non-digit would allow indexOf to be infinitesimally faster?
It certainly does not, see this comment: https://news.ycombinator.com/item?id=13868201
You can remove some digits and get the same result as today (see https://news.ycombinator.com/item?id=13867324), but as it lack so many situations as it does I would not say so.