comparison tests/test-fileset.t @ 38829:7e7e2b2ff284

fileset: add stub for weight-based optimization The main purpose of this change is to group basic patterns, which can be mapped to a plain matcher. I'm not so interested in a weight of each function.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 21 Jul 2018 15:52:26 +0900
parents 48fc2a8af345
children b975c5801487
comparison
equal deleted inserted replaced
38828:3ea6ce609747 38829:7e7e2b2ff284
168 (string 'b')) 168 (string 'b'))
169 (func 169 (func
170 (symbol 'clean') 170 (symbol 'clean')
171 None)))) 171 None))))
172 * analyzed: 172 * analyzed:
173 (or
174 (symbol 'a1')
175 (symbol 'a2')
176 (and
177 (func
178 (symbol 'grep')
179 (string 'b'))
180 (func
181 (symbol 'clean')
182 None)))
183 * optimized:
173 (or 184 (or
174 (symbol 'a1') 185 (symbol 'a1')
175 (symbol 'a2') 186 (symbol 'a2')
176 (and 187 (and
177 (func 188 (func