Skip to content

Very slow to compile even when changing a single file #369

@rubenlg

Description

@rubenlg

At least for those of us without cutting-edge CPUs, contributing to quickjs is really painful, because each small change takes a very long time to compile.

When LTO is enabled, a change to quickjs.c requires 1m 21s to generate qjs in my CPU, most of the time when linking, as compiling quickjs.c takes only 10 seconds. When LTO is disabled it still takes about 45 seconds to generate qjs, but in this case almost all of the time is spent compiling quickjs.c. That's slow enough to get distracted with something else during compilation.

One possible solution would be to split quickjs.c into several compilation units and keep LTO disabled during development. That way, changes contained in a single small-ish compilation unit would have a much faster turnaround.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions