基于这样的问题What made C比Python更快?我了解到动态/静态类型并不是 C 比 Python 更快的主要原因。看起来很大程度上是因为 python 程序是解释性的,而 c 程序是编译性的。
我想知道严格类型是否足以缩小解释程序与编译程序的性能差距,以至于严格类型将成为事后提高解释Python程序性能的可行策略?
如果答案是肯定的,这是在专业开发环境中完成的吗?
c python compiler-construction interpreter
c ×1
compiler-construction ×1
interpreter ×1
python ×1