I register sensor data (accelerometer, compass, Wi-Fi) on Android with a frequency of 5 Hz. I do not often browse wifi.
I am using a text file. When I have 1000 records of data in memory, I add them to a text file.
However, this method seems rather slow. Will using a SQLite database be faster than a regular text file?
One approach may be to use a double buffered list, when one queue is full, starts filling in the next, and in the meantime, another thread writes the entire queue to disk asynchronously, and then flushes (and then continues to repeat).
, n- , .
Source: https://habr.com/ru/post/1778700/More articles:Why doesn't it work, as I expect here? - bashI again have a problem with protobuf.net - c #Running a search robot for selected sites in the Google App Engine? - google-app-engineSQL Server text, text type, image data type - sql-serverIs it thread safe for strcmp? - cGive a different value for input - javaAccess to a model object from multiple controllers? - objective-cGet Maven Runtime Status in a Shell - ShellSet the _layouts page as your homepage in Sharepoint 2010 - sharepoint-2010PHP instance over strings and uninitialized classes - closuresAll Articles