]> git.eshelyaron.com Git - emacs.git/commit
Reduce the number of files probed when finding a lisp file.
authorNicolás Bértolo <nicolasbertolo@gmail.com>
Mon, 25 May 2020 21:05:23 +0000 (18:05 -0300)
committerAndrea Corallo <akrl@sdf.org>
Sat, 6 Jun 2020 19:52:20 +0000 (21:52 +0200)
commite38678b268c2a3f77d1fa32a55706fb9e077405c
treef78ffbd5da5b17b5a827d18ee00b08ce59949cbf
parentee3df1483a9e733c27629da7bcf515789df52ef8
Reduce the number of files probed when finding a lisp file.

* src/lread.c (get-load-suffixes): Do not add any suffix to files that
need to be loaded by the dynamic linker.
(effective_load_path): Remove function.
(load): Don't add any suffix if file ends in a suffix already.
(effective_load_path): Remove function.
(openp_add_middle_dir_to_suffixes): Add helper function to create
pairs of middle directories and suffixes.
(openp_max_middledir_and_suffix_len): Add helper function to count the
number of bytes needed to store the middle directory and suffix.
(openp_fill_filename_buffer): Add helper function to copy middle
directory, basename and suffix to the filename buffer.
src/lread.c