I have a dictionary where the key is a string; while the values are a list of floats.
key = "Sensor1"; values = new List<float>{0.4, 0.5, 0.2, 0.4}; Is this the best data structure that I can use for my case? My concern is related to the time spent parsing the list of values (I will parse this often, both reading it than for write), but I don't see another way, beside a dictionary with the list in it for the values.
Edit
40 sensors read values 10 times a second; I read all these values and save in the dictionary the list with the values, and the key. There are cases where the values in the list for each sensor has to be replaced. The whole process is quite complex; this is the quickest way to summarize it; hopefully is clear.