Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:Ledest:erlang:26
erlang
1361-Cache-ebins-found-in-escripts.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1361-Cache-ebins-found-in-escripts.patch of Package erlang
From 42fc86fc6742c8d725ff08a364841ee1abcfcadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= <jose.valim@dashbit.co> Date: Fri, 11 Aug 2023 16:03:21 +0200 Subject: [PATCH] Cache ebins found in escripts This patch improvements code server performance on escripts by caching its ebin directories, avoiding several archive lookups when loading modules. --- lib/kernel/src/code.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl index c5a3b7ec8e..17ed39f9ed 100644 --- a/lib/kernel/src/code.erl +++ b/lib/kernel/src/code.erl @@ -1030,7 +1030,7 @@ set_primary_archive(ArchiveFile0, ArchiveBin, #file_info{} = FileInfo, {ok, _Mode, Ebins} -> %% Prepend the code path with the ebins found in the archive Ebins2 = [filename:join([ArchiveFile, E]) || E <- Ebins], - add_pathsa(Ebins2); % Returns ok + add_pathsa(Ebins2, cache); % Returns ok {error, _Reason} = Error -> Error end. -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor