On OpenBSD, use FILE_MAP_OPTIMIZED.
authorPascal Stumpf <Pascal.Stumpf@cubes.de>
Mon, 19 Nov 2012 15:22:47 +0000 (16:22 +0100)
committerJon Trulson <jon@radscan.com>
Tue, 20 Nov 2012 02:44:32 +0000 (19:44 -0700)
This has the effect of not performing a tt call each time in
ResolveLocalPathName() if we're on the local host anyway.  Drastically reduces
dtfile startup time.

cde/programs/dtfile/Imakefile

index 112511239276288bb8d4fb56dd58cc938e3364c5..279389c2fe84bbf9fefd082590c500c1e2442d8a 100644 (file)
@@ -24,6 +24,10 @@ SYS_LIBRARIES = DtClientSysLibs DtClientExtraLibs
 EXTRA_DEFINES = -D_TOOLTALK
 #endif
 
+#ifdef OpenBSDArchitecture
+EXTRA_DEFINES = -DFILE_MAP_OPTIMIZE
+#endif
+
 #if defined (SunArchitecture)
 EXTRA_CCOPTIONS = -xF
 #endif