Commit 1037e26
committed
Optimize Syslog date rule using keywords in place of combinations
The previous rule used combinations of Day and Month three letter terms,
and was taking up about 30% of the syntax processing time.
The new methods using keywords has the side effect of highlighting the
three letter identifies in the whole file (they should be reasonably
rare outside of dates, however) but is much faster1 parent 5ce7cb9 commit 1037e26
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
0 commit comments