reustle / covid19japan-data

https://data.covid19japan.com
MIT License
49 stars 16 forks source link

Memory optimizations for patient counts #100

Closed liquidx closed 2 years ago

liquidx commented 2 years ago

Using patientCount rather than blowing up the array of patient data.

We used to output one row for every patient when internally summing the numbers. But this new wave has caused this to consume way too much memory and kill the sorting algorithm.

So we're no longer doing this so that our array length doesn't increase exponentionally