Mercurial > vim
annotate pixmaps/tb_open.xpm @ 33119:bede81965821 v9.0.1842
patch 9.0.1842: Need more accurate profiling
Commit: https://github.com/vim/vim/commit/21d3212361f687704acb52cad7c1b9228e7c83f0
Author: Ernie Rael <errael@raelity.com>
Date: Sat Sep 2 15:09:18 2023 +0200
patch 9.0.1842: Need more accurate profiling
Problem: Need more accurate profiling
Solution: Improve profiling results
closes: #12192
Reduce overhead of checking if a function should be profiled,
by caching results of checking (which are done with regexp).
Cache uf_hash for uf_name in ufunc_T.
Cache cleared when regexps are changed.
Break at first match for has_profiling lookup.
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 02 Sep 2023 15:15:06 +0200 |
parents | 3fc0f57ecb91 |
children |
rev | line source |
---|---|
7 | 1 /* XPM */ |
2 static char * tb_open_xpm[] = { | |
3 /* width height ncolors cpp [x_hot y_hot] */ | |
4 "18 18 7 1 0 0", | |
5 /* colors */ | |
6 " s none m none c none", | |
7 ". s iconColor1 m black c #000000", | |
8 "X s bottomShadowColor m black c #5D6069", | |
9 "o s iconColor2 m none c #FFFFFF", | |
10 "O s iconGray1 m none c #dedede", | |
11 "+ s iconGray5 m black c #737373", | |
12 "@ s iconGray3 m none c #adadad", | |
13 /* pixels */ | |
14 " ", | |
15 " .........X ", | |
16 " .oooooo.o.X ", | |
17 " .oooooo.oo.X ", | |
18 " .oooooo....X ", | |
19 " ...ooooooooo... ", | |
20 " .O.OOOOOOOOo.+. ", | |
21 ".............O.+.X", | |
22 ".oooooooooooo..+.X", | |
23 " .o@@@@@@@@@@+.+.X", | |
24 " .o@@@@@@@@@@@.+.X", | |
25 " .o@@@@@@@@@@+..X", | |
26 " .o@@@@@@@@@@@..X", | |
27 " .o+++++++++++.X", | |
28 " ..............X", | |
29 " XXXXXXXXXXXXX", | |
30 " ", | |
31 " "}; |