Closed bastianilso closed 2 years ago
The logging code and database saving code both come from the LoggingManager package. So @Vincent-SD if you find issues with logging, please verify that the issue exist in LoggingManager repository too, so all Unity projects can benefit.
https://github.com/med-material/LoggingManager
As a first step, please update the Logging Manager in the ArduinoLogger to use the latest version provided by the repository above.
Maybe this issue can be closed, what do you think @bastianilso ? See #46
Currently our data logging workflow is like this: 1) Data is collected into a dictionary structure and stored in RAM for highest performance during data collection. 2) When "Save data" is pressed, the dictionary structure is looped through and saved as CSV. This is a synchronous process which blocks the UI.
When collecting several minutes of data, saving data takes a very long time. How can we adjust this?
Here are some ideas:
String.Builder
class likeJoin()
orconcat()
instead of the+
sign. See https://stackoverflow.com/a/21093 We should try to move as much of the operation into lower level programming language as possible.