]> git.eshelyaron.com Git - emacs.git/commit
Speed up color cache lookup on X
authorPo Lu <luangruo@yahoo.com>
Sun, 24 Apr 2022 00:44:18 +0000 (08:44 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 24 Apr 2022 00:44:18 +0000 (08:44 +0800)
commit9b6580ccb73e6cb71a89099bb7062689cbed9e20
tree8f024c4a5fe5f850015f8f1b33fe09d371e413da
parent9c346270f9848c5abf3c40def48ad1f65758763a
Speed up color cache lookup on X

* src/xterm.c (x_hash_string_ignore_case): New function.
(x_parse_color): Turn color cache into a hash table.
(x_term_init): Allocate color cache.
(x_delete_display): Free color cache correctly.
* src/xterm.h (struct x_display_info): Turn color cache into a
hash table and add appropriate fields.
src/xterm.c
src/xterm.h