Page 1 of 1

Editing records reading monthfiles

Posted: Sat 27 Jan 2024 5:53 am
by HansR
While editing records:

If you start with the all time records and need to read the logfiles it takes quite some time. That in itself is not a problem. But then, when I start editing the monthly records, it reads those logfiles again.

It may be a good idea to hold on to that data until either a time or another menu choice or... whatever criterium so that the user can easily switch between the different editing menu's

Re: Editing records reading monthfiles

Posted: Mon 29 Jan 2024 2:12 pm
by mcrossley
It's an idea, I don't know what the impact would be though. Currently a single month file is read into memory, processed, then the next one read etc. So only a single month is held in memory at any one time.

If you were one of the people with 20 odd years of history, that would be a lot of data to buffer, escpeically on a low spec pi for example (the memory structures will generally be a bit larger than the text file equivalents, so you could roughly estimate it from the /data folder size)

Re: Editing records reading monthfiles

Posted: Mon 29 Jan 2024 2:21 pm
by HansR
I read everything in CUtils and keep it in memory. Real low level spec may be an issue but hey... That's where swap comes in :mrgreen: