File 4081-Default-code_path_choice-to-strict.patch of Package erlang

From 8ecdf2cfea581d2ba26865e54745c93e672567c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Valim?= <jose.valim@dashbit.co>
Date: Mon, 16 Jan 2023 13:47:11 +0100
Subject: [PATCH] Default -code_path_choice to strict

This option requires traversing the loadpaths
several times and doing multiple filesystem
lookups during boot.

This shaves 4ms from boot time on my local
machine but, in an application such as Livebook,
it shaves +10ms when booting on a typical Linux
box.
---
 erts/preloaded/src/init.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/erts/preloaded/src/init.erl b/erts/preloaded/src/init.erl
index 9d28d214fa..2fb635b60a 100644
--- a/erts/preloaded/src/init.erl
+++ b/erts/preloaded/src/init.erl
@@ -292,7 +292,7 @@ code_path_choice() ->
 	{ok,[["relaxed"]]} ->
 	    relaxed;
 	_Else ->
-	    relaxed
+	    strict
     end.
 
 boot(Start,Flags,Args) ->
-- 
2.35.3

openSUSE Build Service is sponsored by