0

Can we make python code Faster as in compile languages?

I wonder if we could take advantage of something to make the code more efficient...

1st Sep 2020, 2:40 PM
Jesús Ferney Salazar Carpio
Jesús Ferney Salazar Carpio - avatar
8 Respuestas
+ 7
The best way to make your program faster is by improvising your algorithm. Other methods will not lead to a major noticable difference.
1st Sep 2020, 2:43 PM
Arsenic
Arsenic - avatar
+ 6
Arsenic I totally agree with him! 👏👏🙌🙌 And one more thing is important that really matters! Avoiding import of modules! Importing modules also takes a considerable amount of time of the code runtime!
1st Sep 2020, 2:59 PM
Namit Jain
Namit Jain - avatar
+ 3
Python was not built for speed, it was built for ease and simplicity. Besides, who is "we" here? you? or is it SoloLearn community? I would assume one would need to be involved in Python development team to try to make it a reality. In which case, one makes the change from the inside (if it was even possible), rather than trying to do it as a user of the language.
1st Sep 2020, 2:54 PM
Ipang
+ 1
Oh thanks i will try that
1st Sep 2020, 2:50 PM
Jesús Ferney Salazar Carpio
Jesús Ferney Salazar Carpio - avatar
+ 1
Ipang sorry I am mistaken, i was referring to me.
2nd Sep 2020, 12:17 AM
Jesús Ferney Salazar Carpio
Jesús Ferney Salazar Carpio - avatar
+ 1
Ipang thanks for the advice
2nd Sep 2020, 12:17 AM
Jesús Ferney Salazar Carpio
Jesús Ferney Salazar Carpio - avatar
+ 1
Arsenic oh interesting, i didn't know that
2nd Sep 2020, 12:18 AM
Jesús Ferney Salazar Carpio
Jesús Ferney Salazar Carpio - avatar