[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master bdcd662a21f 5/6: Speed up make_lisp_symbol when debugging
From: |
Paul Eggert |
Subject: |
master bdcd662a21f 5/6: Speed up make_lisp_symbol when debugging |
Date: |
Sat, 20 Jan 2024 20:29:05 -0500 (EST) |
branch: master
commit bdcd662a21f4c4265f704b69deb9cf277a663ea7
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Speed up make_lisp_symbol when debugging
* src/lisp.h (make_lisp_symbol): In eassert use XBARE_SYMBOL
rather than XSYMBOL. This is safe because the symbol must be
bare. The change speeds up make_lisp_symbol when debugging.
---
src/lisp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lisp.h b/src/lisp.h
index c3309c81a16..f0beafba42c 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1166,7 +1166,7 @@ make_lisp_symbol (struct Lisp_Symbol *sym)
cast to char * rather than to intptr_t. */
char *symoffset = (char *) ((char *) sym - (char *) lispsym);
Lisp_Object a = TAG_PTR (Lisp_Symbol, symoffset);
- eassert (XSYMBOL (a) == sym);
+ eassert (XBARE_SYMBOL (a) == sym);
return a;
}
- master updated (afc9cd1721c -> 416fad04c26), Paul Eggert, 2024/01/20
- master 973c1b8a183 1/6: Pacify gcc -Wsuggest-attribute=malloc, Paul Eggert, 2024/01/20
- master b6ed79b71cc 3/6: Be more systematic about parens in C source code, Paul Eggert, 2024/01/20
- master 0a47a5a4bef 2/6: Omit some parens, Paul Eggert, 2024/01/20
- master cf26f573162 4/6: Simplify and tune XSYMBOL, Paul Eggert, 2024/01/20
- master bdcd662a21f 5/6: Speed up make_lisp_symbol when debugging,
Paul Eggert <=
- master 416fad04c26 6/6: Omit -DHAVE_CONFIG_H, Paul Eggert, 2024/01/20