Skip to content

Commit

Permalink
Merge pull request pandas-dev#349 from manahl/issue-348
Browse files Browse the repository at this point in the history
If cython lz4 cannot import, disable parallel compression
  • Loading branch information
bmoscon authored May 12, 2017
2 parents 2f1af2b + 396f02d commit 0a6b490
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arctic/_compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

logger = logging.getLogger(__name__)

# switch to parallel LZ4 compress (and potentially other parallel stuff), Default True
ENABLE_PARALLEL = not os.environ.get('DISABLE_PARALLEL')
LZ4_N_PARALLEL = 50 # No. of elements to use parellel compression in LZ4 mode

try:
from . import _compress as clz4
except ImportError:
logger.warning("Couldn't import cython lz4")
import lz4 as clz4


# switch to parallel LZ4 compress (and potentially other parallel stuff), Default True
ENABLE_PARALLEL = not os.environ.get('DISABLE_PARALLEL')
LZ4_N_PARALLEL = 50 # No. of elements to use parellel compression in LZ4 mode
ENABLE_PARALLEL = False


def enable_parallel_lz4(mode):
Expand Down

0 comments on commit 0a6b490

Please sign in to comment.