You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not providing benchmarks for this, as:
- there's a new approach to `is_valid`. It's still recursive, but now
such that *not* using memoization would yield exponentially exploding
runtimes (as these functions call each other a lot, with highly
repetitive inputs; the upside is that the code reads really nicely).
Much like a naive Fibonacci implementation. As such, memoization is
now *required* and leaving it out would simply show abysmal
performance in benchmarks.
THAT SAID, performance is still strongly improved (probably), as a
vital hot-loop part *is* memoized after all.
- I can't be bothered this time around
Closes#1
When running on large inputs, certain words will be highly common. Memoize those, like
@cache
in Python.See also alexpovel/betterletter#33 .
The text was updated successfully, but these errors were encountered: