From 1a171303b442351cf2b63038776f856902cce1dd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 20 Jun 2013 21:10:16 -0400 Subject: assistant: On Linux, the expensive transfer scan is run niced. This is a compromise. I would like to nice every thread except for the webapp thread, but it's not practical to do so. That would need every thread to run as a bound thread, which could add significant overhead. And any forkIO would escape the nice level. --- git-annex.cabal | 3 +++ 1 file changed, 3 insertions(+) (limited to 'git-annex.cabal') diff --git a/git-annex.cabal b/git-annex.cabal index 210b64b01..5ac4d0f0b 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -115,6 +115,9 @@ Executable git-annex Build-Depends: data-endian CPP-Options: -D__ANDROID__ + if os(linux) + CPP-Options: -D__LINUX__ + if os(linux) && flag(Inotify) Build-Depends: hinotify CPP-Options: -DWITH_INOTIFY -- cgit v1.2.3