emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3ea77c735de 5/7: Use the new obarray type for the initial obarray


From: Mattias Engdegård
Subject: master 3ea77c735de 5/7: Use the new obarray type for the initial obarray
Date: Fri, 23 Feb 2024 07:16:12 -0500 (EST)

branch: master
commit 3ea77c735de975ebda707e0e1e8bb5e0adad2bf5
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    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.
---
 src/lread.c | 5 +----
 1 file changed, 1 insertion(+), 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",
   return Fnreverse (ret);
 }
 
-#define OBARRAY_SIZE 15121
-
 void
 init_obarray_once (void)
 {
-  /* FIXME: use PVEC_OBARRAY */
-  Vobarray = make_vector (OBARRAY_SIZE, make_fixnum (0));
+  Vobarray = make_obarray (15);
   initial_obarray = Vobarray;
   staticpro (&initial_obarray);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]