summaryrefslogtreecommitdiff
path: root/java/org/gnu/emacs/EmacsInputConnection.java
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2023-09-25 17:19:00 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2023-09-25 17:33:21 +0200
commit091b8de586efc41c3dbd8606445c99c541e90076 (patch)
tree492d61f5c27b628eff5df7c332da384dcff4c41b /java/org/gnu/emacs/EmacsInputConnection.java
parentaa28527500210e542349cca3cd805a61a01c9dac (diff)
Use heuristic to speed up allocation of small vectors (bug#65491)
Instead of scanning vector_free_lists from the appropriate size until we find a nonempty bucket, start at the last bucket where we last put something in. This may favour splitting larger vectors than necessary but in general saves a lot of time in the allocation of small vectors. Original patch by Ihor Radchenko. * src/alloc.c (last_inserted_vector_free_idx): New variable. (setup_on_free_list): Set it. (allocate_vector_from_block): Use it. (sweep_vectors): Reset it.
Diffstat (limited to 'java/org/gnu/emacs/EmacsInputConnection.java')
0 files changed, 0 insertions, 0 deletions