Werc Tips & Tricks
Performance Optimizations
Statically link Plan 9 from User Space
In *nix-like systems dynamic linking creates a huge penalty for fork calls, so statically linking p9p will improve werc’s performance considerably.
For this all you need to do is edit your $PLAN9/bin/9l as follows:
diff -r 47b3d93f532d bin/9l
@@ -264,7 +264,7 @@
extralibs="$extralibs -lutil"
;;
*Linux*)
- ld=gcc
+ ld="gcc -static"
userpath=true
extralibs="$extralibs -lutil"
case "${SYSVERSION:-`uname -r`}" in
And then run the p9p INSTALL script again.
To post a comment you need to login first.