fast file access with memory mapped files

(compile option WITH_MYFILE_MMAP)
This commit is contained in:
ffsup2
2010-11-30 00:10:01 +01:00
parent 538e86dea9
commit 5ba5f2679f
4 changed files with 103 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ endif (APPLE)
option (BUILD_SHARED "Build rawtherapee with shared libraries" OFF)
option (WITH_RAWZOR "Build with Rawzor support" OFF)
option (WITH_MYFILE_MMAP "Build using memory mapped file" OFF)
option (OPTION_OMP "Build with OpenMP support" ON)
# set install directories
@@ -123,6 +124,10 @@ if (WITH_RAWZOR)
endif (WIN32)
endif (WITH_RAWZOR)
if (WITH_MYFILE_MMAP)
add_definitions (-DMYFILE_MMAP)
endif (WITH_MYFILE_MMAP)
if (OPTION_OMP)
find_package(OpenMP)
if (OPENMP_FOUND)