[Xcb] About next release of xcb/util

James Cloos cloos at jhcloos.com
Thu Mar 25 15:31:19 PDT 2010


To give an example of how painful lots of shared libs can be, this is a
comparison of pdfinfo from xpdf vs pdfinfo from poppler.  Both do the
same thing using essentially the same code, but one links only libpaper,
libstdc++, libm and libc, whereas the other links to libpoppler, which
pulls in several other libs:

--- gtime.xpdf	2010-03-25 18:25:50.897219802 -0400
+++ gtime.popp	2010-03-25 18:26:13.621186289 -0400
@@ -1,5 +1,5 @@
-	Command being timed: "XPDFinfo stand.pdf"
+	Command being timed: "pdfinfo stand.pdf"
-	User time (seconds): 0.00
+	User time (seconds): 0.01
-	System time (seconds): 0.00
+	System time (seconds): 0.01
-	Percent of CPU this job got: 3%
+	Percent of CPU this job got: 0%
-	Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.32
+	Elapsed (wall clock) time (h:mm:ss or m:ss): 0:05.32
@@ -10 +10 @@
-	Maximum resident set size (kbytes): 5520
+	Maximum resident set size (kbytes): 9072
@@ -12,3 +12,3 @@
-	Major (requiring I/O) page faults: 6
+	Major (requiring I/O) page faults: 41
-	Minor (reclaiming a frame) page faults: 427
+	Minor (reclaiming a frame) page faults: 634
-	Voluntary context switches: 22
+	Voluntary context switches: 96
@@ -17 +17 @@
-	File system inputs: 1696
+	File system inputs: 9104

(I re-ordered the diff to highlight the differences.)

Five extra seconds, an additional page of VM, and a lot more I/O.

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the Xcb mailing list