P
P
Popou2020-08-28 18:19:32
Python
Popou, 2020-08-28 18:19:32

How will using dll in python affect performance?

I would like some calculations to go to the dll file to ( presumably ) "speed up" the work. Will it be faster or will the result not change if I write a normal python module? I just googled for answers but couldn't find any. Thanks in advance !

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DevMan, 2020-08-28
@Popou

theoretically it will be faster.
practically depends on the specific implementation.

V
Vladimir Korotenko, 2020-08-28
@firedragon

Who knows, libraries are usually highly optimized if you donate a little and it is considered a lot, then the gain is significant. Why not try a test run? Or a profiler to identify bottlenecks?

T
Ternick, 2020-08-28
@Ternick

It is a dubious pleasure to "speed up" the work of the program in this way. If you need speed, then you need to use low-level languages, the lower, the faster. In my opinion, nothing much will change in terms of speed.
If you want to speed up the process, you can use streams, asynchrony, write an application in C programming languages ​​and pass the parameters you need there and run it, and then get the result through a socket, named pipe or pipe and display it in python.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question