Skip to content

Commit

Permalink
Mark some functions as cold
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereira committed Jun 1, 2024
1 parent 1311275 commit 72430e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/lwan-request.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ body_data_finalizer(const struct lwan_value *buffer,
return FINALIZER_TRY_AGAIN;
}

__attribute__((cold))
static const char *is_dir_good_for_tmp(const char *v)
{
struct statfs sb;
Expand Down Expand Up @@ -1143,6 +1144,7 @@ static const char *is_dir_good_for_tmp(const char *v)
static const char *temp_dir;
static const size_t body_buffer_temp_file_thresh = 1<<20;

__attribute__((cold))
static const char *
get_temp_dir(void)
{
Expand Down

0 comments on commit 72430e5

Please sign in to comment.