Closed birdalicious closed 10 months ago
What do I need to run dotnet test
I've installed all the versions of .NET required but what is the setup up for the influx instances on 8086/9999?
You can start pre-configured InfluxDB instances in a Docker environment using the /Scripts/influxdb-restart.sh
script.
This PR has been closed because it has not had recent activity. Please reopen if this PR is still important to you and you want to continue with them.
Proposed Changes
Change WriteApi to use IEnumerable for collection arguments instead of List. Change
WriteRecords(List<string> records)
toWriteRecords(IEnumerable<string> records)
Calling ToList on a collection will incur a memory allocation as the data is copied to the new list. Making the argument IEnumerable means ToList doesn't need to be called and so no extra memory allocation. Internally this will eliminate the unnecessary memory allocation in
WriteRecords(string[] record)
call to ToList, and client code also won't have to make the allocation if their data isn't already in a List## ChecklistChecklist
dotnet test
completes successfully