Skip to content

mix format slower when using MIX_OS_DEPS_COMPILE_PARTITION_COUNT #14843

@spicychickensauce

Description

@spicychickensauce

Elixir and Erlang/OTP versions

Erlang/OTP 28 [erts-16.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]

Elixir 1.19.0 (compiled with Erlang/OTP 28)

Operating system

Arch Linux

Current behavior

Running mix format once with MIX_OS_DEPS_COMPILE_PARTITION_COUNT=8 and once without shows that with it, the formatting is about 4x slower:

$ time MIX_OS_DEPS_COMPILE_PARTITION_COUNT=0 mix format

real    0m0.583s
user    0m2.497s
sys     0m0.342s

$ time MIX_OS_DEPS_COMPILE_PARTITION_COUNT=8 mix format
mix deps.compile running across 8 OS processes

real    0m2.145s
user    0m2.535s
sys     0m0.342s

Expected behavior

It should be at least the same speed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions