11 Jan 2013

Just a short note

the default pure-python implementations of pyyaml and pickle are not the fastest when it comes to handling more than a few hosts. So we are using the C implementations now (where available), increasing the overall performance by factor 2.5 (measured, feels like 5).

Reference

Example code

  
try:
    from yaml import CLoader as Loader
    logger.debug("using C implementation of yaml")
except ImportError:
    from yaml import Loader
    logger.debug("using default yaml")
try:
    import cPickle as pickle
    logger.debug("using C implementation of pickle")
except ImportError:
    import pickle
    logger.debug("using default pickle")
  

YADT an Augmented Deployment Tool
Copyright (C) 2010-2016 Immobilien Scout GmbH
Licensed under GNU GPL v3

2016-05-11 10:48:37 +0000