Answer the question
In order to leave comments, you need to log in
How can you optimize in c#?
I have a program for reading devices, but it works for a long time, help me improve the algorithm, here is a link to the project
https://github.com/NikolayPetyukh/ni-interface.git I will be very grateful for any help ))
Answer the question
In order to leave comments, you need to log in
What is the communication protocol of the device?
The synchronous request-response protocol in Windows is always slow. You can slightly improve the situation by using flush() to push data, make a separate high-priority thread (or a separate process) for sending and receiving data. If possible, separate the streams of sending data and receiving data, i.e. send requests in batches without waiting for a response.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question