Google-Location-History-Total-Distance-Travelled icon indicating copy to clipboard operation
Google-Location-History-Total-Distance-Travelled copied to clipboard

feat: Stream contents of location file instead of reading it at once

Open m-h-t opened this issue 6 years ago • 0 comments

Hi @kyleai

This PR implements stream reading chunks of the location file consecutively instead of loading it all into memory. I did this because Chromium froze when trying to calculate my travelled distance as the JSON file was too big.

I also added webpack, changed the structure somewhat; it now displays km instead of miles... If you decide to merge, feel free to cherry pick the changes you want. Also, it'd be great to have an option to choose between miles/km and date formats. :-)

Fixes https://github.com/kyleai/Google-Location-History-Total-Distance-Travelled/issues/1

m-h-t avatar Feb 16 '19 01:02 m-h-t