This repository was archived by the owner on Jul 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
This repository was archived by the owner on Jul 3, 2025. It is now read-only.
Colorizer makes loading files really slow #30
Copy link
Copy link
Open
Description
I was trying colorizer with a file that was ~58K lines long and it was taking more than 15 seconds to load. Looking into Vim profiler it seems that most of the time was spent on the function PreviewColorInLine()
FUNCTION <SNR>24_PreviewColorInLine()
Called 58187 times
Total time: 14.430544
Self time: 2.961442
count total (s) self (s)
58187 0.137628 let line = getline(a:where)
232748 0.306366 for Func in s:ColorFinder
174561 12.106593 0.637491 let ret = Func(line, a:where)
" returned a list of a list: color as #rrggbb, text pattern to highlight
174561 0.206301 for r in ret
call s:SetMatcher(r[0], r[1])
endfor
174561 0.162987 endfor
weirongxu, kyhy, punk-dev-robot, humaidq, pmlo-sirisak-l and 4 more
Metadata
Metadata
Assignees
Labels
No labels