Changeset: c3f7b42bd85e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c3f7b42bd85e
Modified Files:
        gdk/gdk_system.mx
Branch: Mar2011
Log Message:

Significantly speed up startup of mserver.
I had moved the function MT_check_nr_cores from gdk_posix to
gdk_system.  This function checks a symbol to see whether it can use
sysconf() to find out the number of cores.  This symbol is defined in
a file which is included by unistd.h.  The include for unistd.h in
gdk_posix contains a helpful comment: "sbrk on Solaris", so I didn't
think to copy the include to gdk_system.  This meant that
MT_check_nr_cores calculated the number of cores the hard way, which
the optimizer in the compiler (when used) would optimize into
oblivion, but if you don't use the optimizer...


diffs (12 lines):

diff --git a/gdk/gdk_system.mx b/gdk/gdk_system.mx
--- a/gdk/gdk_system.mx
+++ b/gdk/gdk_system.mx
@@ -249,6 +249,8 @@
 # include <signal.h>
 #endif
 
+#include <unistd.h>            /* for sysconf symbols */
+
 MT_Lock MT_system_lock
 #ifdef PTHREAD_MUTEX_INITIALIZER
        = PTHREAD_MUTEX_INITIALIZER
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to