[Numpy-svn] [numpy/numpy] 41dc79: Optimization for pickling random states

GitHub noreply at github.com
Mon Jun 2 15:35:09 EDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 41dc794935e6b01ab0427c054e930a23e4429e4a
      https://github.com/numpy/numpy/commit/41dc794935e6b01ab0427c054e930a23e4429e4a
  Author: markdepristo <mdepristo at synapdx.com>
  Date:   2014-06-02 (Mon, 02 Jun 2014)

  Changed paths:
    M numpy/random/__init__.py

  Log Message:
  -----------
  Optimization for pickling random states

-- Addresses https://github.com/numpy/numpy/issues/4763


  Commit: dc5a148854476ece243205f05e09fd1218692205
      https://github.com/numpy/numpy/commit/dc5a148854476ece243205f05e09fd1218692205
  Author: Julian Taylor <juliantaylor108 at gmail.com>
  Date:   2014-06-02 (Mon, 02 Jun 2014)

  Changed paths:
    M numpy/random/__init__.py

  Log Message:
  -----------
  Merge pull request #4768 from depristo/master

ENH: Optimization for pickling random states

the constructor intended for pickling initializes its state via reading /dev/urandom which can be expensive on virtual machines. as the pickle constructor just needs to create any state which will later be initialized these urandom reads are unnecessary.


Compare: https://github.com/numpy/numpy/compare/e9f27b9ad506...dc5a14885447


More information about the Numpy-svn mailing list