ChrisTitusTech / dwm-titus

My DWM configuration with everything pre-patched
MIT License
78 stars 46 forks source link

Enhance dwm Performance #12

Closed fesowowako closed 2 months ago

fesowowako commented 2 months ago

I swapped the fork() and execvp() code for posix_spawnp(). This change enhances efficiency by minimising system calls, which speeds up process creation. posix_spawnp() also offers finer control over the new process, such as setting attributes, optimising its performance. Additionally, in config.mk update, I've introduced an optional optimisations flag for those who wish to utilise them. Additionally, I've included the -Wno-unused-function flag in the CFLAGS, which suppresses warnings about unused functions, thereby removing dead code.