mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 03:13:09 +00:00
*highlight: Optimization: *-string doesn't need own match, mend, etc.
parse.zsh -oo, after changes: Running time: 1.5645680000 num calls time self name ----------------------------------------------------------------------------------- 1) 350 1557,07 4,45 100,00% 1183,85 3,38 76,03% -hsmw-highlight-process 2) 2800 266,75 0,10 17,13% 266,75 0,10 17,13% -hsmw-highlight-string 3) 2450 72,70 0,03 4,67% 72,70 0,03 4,67% -hsmw-highlight-check-path 4) 1400 24,16 0,02 1,55% 24,16 0,02 1,55% -hsmw-highlight-main-type 5) 350 9,62 0,03 0,62% 9,62 0,03 0,62% -hsmw-highlight-stack-pop 6) 1 0,07 0,07 0,00% 0,07 0,07 0,00% -hsmw-highlight-fill-option-variables 7) 1 0,01 0,01 0,00% 0,01 0,01 0,00% -hsmw-highlight-init
This commit is contained in:
parent
610144c56f
commit
4b70d8d977
1 changed files with 0 additions and 2 deletions
|
@ -635,8 +635,6 @@ __HSMW_HIGHLIGHT_TOKENS_TYPES=(
|
|||
# Highlight special chars inside double-quoted strings
|
||||
-hsmw-highlight-string()
|
||||
{
|
||||
local -a match mbegin mend
|
||||
|
||||
mybuf=$arg
|
||||
idx=start_pos
|
||||
|
||||
|
|
Loading…
Reference in a new issue