Cache user from getpwuid because it can be very expensive on some

platforms. From Ben Maurer in GitHub issue 4973.
This commit is contained in:
nicm
2026-04-04 17:13:07 +00:00
parent 7f2ac9c871
commit cad282ebb7
3 changed files with 13 additions and 4 deletions

1
tmux.h
View File

@@ -1958,6 +1958,7 @@ typedef void (*overlay_resize_cb)(struct client *, void *);
struct client {
const char *name;
struct tmuxpeer *peer;
const char *user;
struct cmdq_list *queue;
struct client_windows windows;