From a726c7128ab5c6fffeb6844f3d819ada0369e6a8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 31 Jan 2024 19:51:51 -0500 Subject: opt: Charge eval_flags() for a stat() call --- src/opt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/opt.c b/src/opt.c index 7203c61..28a2255 100644 --- a/src/opt.c +++ b/src/opt.c @@ -1218,6 +1218,7 @@ static struct bfs_expr *annotate_visit(struct bfs_opt *opt, struct bfs_expr *exp {eval_acl, STAT_COST}, {eval_capable, STAT_COST}, {eval_empty, 2 * STAT_COST}, // readdir() is worse than stat() + {eval_flags, STAT_COST}, {eval_fls, PRINT_COST}, {eval_fprint, PRINT_COST}, {eval_fprint0, PRINT_COST}, -- cgit v1.2.3