Why are Interpreted Languages Slow?

前端 未结 15 1571
南旧
南旧 2020-12-24 11:05

I was reading about the pros and cons of interpreted languages, and one of the most common cons is the slowness, but why are programs in interpreted languages slow?

15条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-24 11:42

    Read this Pros And Cons Of Interpreted Languages

    This is the relevant idea in that post to your problem.

    An execution by an interpreter is usually much less efficient then regular program execution. It happens because either every instruction should pass an interpretation at runtime or as in newer implementations, the code has to be compiled to an intermediate representation before every execution.

提交回复
热议问题