ianfhunter / GNOLL

GNOLL is an efficient dice notation parser for multiple programming languages that supports a wide set of dice notation
https://www.ianhunter.ie/GNOLL/
GNU General Public License v3.0
39 stars 23 forks source link

Cache last 100 used requests #451

Open ianfhunter opened 7 months ago

ianfhunter commented 7 months ago

Is your feature request related to a problem? Please describe.

Looking at Avrae's dice roller, they cache frequent roll strings so they don't have to be repaired, saving a bunch of time. We should see if we can do something similar.

Describe the solution you'd like

Configurable size cache with compile time define (size 0 to disable) Performance measurement of overhead.

Describe alternatives you've considered

Additional context

ianfhunter commented 7 months ago

Requires overhaul