Commit fc8e096
scripts: twister: minor speedup in apply_filters
Move a check to run earlier in a for-loop to minimize doing unnecessary
work like creating TestInstance class instances.
This is a very minor optimization when the number of testsuites are low.
But starts to count when there are a lot of testsuites.
Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>1 parent a1123c4 commit fc8e096
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
892 | 896 | | |
893 | 897 | | |
894 | 898 | | |
| |||
909 | 913 | | |
910 | 914 | | |
911 | 915 | | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
| |||
0 commit comments