When doing something like map(["a","b"],"matchstr(v:val, "\(.\)")) will the regular expression "\(.\)" be compiled on every iteration?
How about this:
for l in lines
if l =~"regex"
...
?
I noticed this beeing slow compared to executing grep once ago.
If this is an issue, there might be the solution introducing a compiled
regular expression as used in python additional to Number, String,
Funcref, List, Dictionary
What do you think? Would this be an enhancement?
Marc Weber
