From b64f79b1b8a685b775b9ae93612c35770ea956ce Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Mon, 19 Nov 2012 16:22:47 +0100 Subject: [PATCH] On OpenBSD, use FILE_MAP_OPTIMIZED. 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cde/programs/dtfile/Imakefile b/cde/programs/dtfile/Imakefile index 11251123..279389c2 100644 --- a/cde/programs/dtfile/Imakefile +++ b/cde/programs/dtfile/Imakefile @@ -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 -- 2.25.1