+ 2

Why python is slow compared to java and C.

2nd Aug 2020, 5:36 PM
Balaji - avatar
3 Answers
+ 6
2nd Aug 2020, 5:48 PM
Rohit - avatar
+ 2
Notice internally python compiles to bytecode for Python virtual machine too. One of the problems is multithreading because Python uses "Global interpreter lock" https://en.wikipedia.org/wiki/Global_interpreter_lock https://realpython.com/python-gil/
2nd Aug 2020, 10:03 PM
+ 1
Python is slower than c and java as it is a dynamically typed language meaning it doesn't require you to care about memory while c and java are statically typed language meaning they requires you to manage memory wisely and manually
2nd Aug 2020, 5:50 PM
Bot - avatar