I
I
itgood2019-02-18 20:21:09
C++ / C#
itgood, 2019-02-18 20:21:09

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

1 answer(s)
P
Papayaved, 2019-02-28
@Papayaved

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 question

Ask a Question

731 491 924 answers to any question