How compiled language like Go performs without dynamic load compared to interpreted languages?

106 views Asked by At

I switched to Go from interpreted languages like javascript, php, python.

After using some CMS frameworks for web app like qor then i realized it loads all the resources at runtime like: backend and frontend even when user only access to the frontend.

All backend/admin resources will be loaded like: routing, SetupDashboard, templates ... after i ran go run main.go

All the memory will be allocated for those wasted resources?

Is it good for performance comparing to interpreted language while it loads needed resources with dynamic load (which Go don't have)?

def doSomething(name):
    name = "package." + name
    mod = __import__(name, fromlist=[''])
    mod.doSomething()

Or how compiled language like Go with its GC have it's way to handle the allocated memory while not in use?

0

There are 0 answers