Skip to content

Commit a726c71

Browse files
committed
opt: Charge eval_flags() for a stat() call
1 parent 8ecd1dc commit a726c71

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/opt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@ static struct bfs_expr *annotate_visit(struct bfs_opt *opt, struct bfs_expr *exp
12181218
{eval_acl, STAT_COST},
12191219
{eval_capable, STAT_COST},
12201220
{eval_empty, 2 * STAT_COST}, // readdir() is worse than stat()
1221+
{eval_flags, STAT_COST},
12211222
{eval_fls, PRINT_COST},
12221223
{eval_fprint, PRINT_COST},
12231224
{eval_fprint0, PRINT_COST},

0 commit comments

Comments
 (0)