> I wrote a really simple program, forktest.c. > Next, I performed some experiments using this program. Fork is faster > for statically linked executables. It becomes slower as more libraries > are added to a dynamically linked executable.
What fascinates me here is that forktest doesn't even use anything from those other libraries. In the statically linked case, listing an unneeded library is basically a noop. It appears to be rather more involved in the world of GNU shared libraries. BLS
