aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias EngdegÄrd2024-02-11 15:11:21 +0100
committerMattias EngdegÄrd2024-02-23 13:02:27 +0100
commit3ea77c735de975ebda707e0e1e8bb5e0adad2bf5 (patch)
tree58215d59715cbaa676aadab334695f3d72414d98 /src
parent462d8ba813e07a25b71f5c1b38810a29e21f784c (diff)
downloademacs-3ea77c735de975ebda707e0e1e8bb5e0adad2bf5.tar.gz
emacs-3ea77c735de975ebda707e0e1e8bb5e0adad2bf5.zip
Use the new obarray type for the initial obarray
This can improve performance a lot, especially after the obarray has been fed many symbols. * src/lread.c (OBARRAY_SIZE): Remove. (load_path_check): Create an obarray object instead of a vector.
Diffstat (limited to 'src')
-rw-r--r--src/lread.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lread.c b/src/lread.c
index c4a34c5d73f..49683d02401 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -5446,13 +5446,10 @@ DEFUN ("internal--obarray-buckets",
5446 return Fnreverse (ret); 5446 return Fnreverse (ret);
5447} 5447}
5448 5448
5449#define OBARRAY_SIZE 15121
5450
5451void 5449void
5452init_obarray_once (void) 5450init_obarray_once (void)
5453{ 5451{
5454 /* FIXME: use PVEC_OBARRAY */ 5452 Vobarray = make_obarray (15);
5455 Vobarray = make_vector (OBARRAY_SIZE, make_fixnum (0));
5456 initial_obarray = Vobarray; 5453 initial_obarray = Vobarray;
5457 staticpro (&initial_obarray); 5454 staticpro (&initial_obarray);
5458 5455