Attempt to create local switches with announced relocatable compiler optimization seems to no longer work with 5.5.0 release and runtimes are even or worse then for the initial/global one:
$ /usr/bin/time opam switch create 5.5.0 ocaml.5.5.0
<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: [“ocaml” {= “5.5.0”}]<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
retrieved ocaml.5.5.0 (cached)
∗ installed base-bigarray.base
∗ installed base-threads.base
∗ installed base-unix.base
∗ installed ocaml-options-vanilla.1
retrieved ocaml-compiler.5.5.0 (cached)
∗ installed ocaml-compiler.5.5.0
∗ installed ocaml-base-compiler.5.5.0
∗ installed ocaml.5.5.0
∗ installed base-domains.base
∗ installed base-effects.base
∗ installed base-nnp.base
Done.
346.33user 35.18system 1:18.88elapsed 483%CPU (0avgtext+0avgdata 396620maxresident)k
0inputs+2098392outputs (972major+9764743minor)pagefaults 0swaps
1 min 19 sec for the initial switch
$ eval $(opam env)
$ ocamlopt -where
/home/torimus/.opam/5.5.0/lib/ocaml$ /usr/bin/time opam switch create -y . ocaml.5.5.0
<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: [“ocaml” {= “5.5.0”}]<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
retrieved ocaml.5.5.0 (cached)
∗ installed base-bigarray.base
∗ installed base-threads.base
∗ installed base-unix.base
∗ installed ocaml-options-vanilla.1
retrieved ocaml-compiler.5.5.0 (cached)
∗ installed ocaml-compiler.5.5.0
∗ installed ocaml-base-compiler.5.5.0
∗ installed ocaml.5.5.0
∗ installed base-domains.base
∗ installed base-effects.base
∗ installed base-nnp.base
Done.To update the current shell environment, run: eval $(opam env)
346.45user 35.28system 1:19.52elapsed 480%CPU (0avgtext+0avgdata 396376maxresident)k
0inputs+2098480outputs (1125major+9777914minor)pagefaults 0swaps
1 min 20 sec for the local (cloned) switch,
where most time is spent on
Processing 21/36: [ocaml-compiler: make]
I’ve guessed it should just reuse existing build by default, but it seems this is not the case…
What is going on here?