[Numpy-svn] [numpy/numpy] b7aec6: ENH: core: add a fast path for PEP3118 buffer stri...

GitHub noreply@github....
Sun Sep 22 13:20:51 CDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: b7aec6035d2b2cfbcabe84e308ce3b09ea5fe540
      https://github.com/numpy/numpy/commit/b7aec6035d2b2cfbcabe84e308ce3b09ea5fe540
  Author: Pauli Virtanen <pav@iki.fi>
  Date:   2013-09-22 (Sun, 22 Sep 2013)

  Changed paths:
    M numpy/core/src/multiarray/buffer.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  ENH: core: add a fast path for PEP3118 buffer string parsing

The call back to Python numpy.core._internal._dtype_from_pep3118 is an
unnecessary large overhead for the most common case, when the buffer
passed in has a simple non-composite type.

This commit adds a fast path for the simple case.


  Commit: 27e931f7e93904667ffc8609fd8cae36e0de6f48
      https://github.com/numpy/numpy/commit/27e931f7e93904667ffc8609fd8cae36e0de6f48
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-09-22 (Sun, 22 Sep 2013)

  Changed paths:
    M numpy/core/src/multiarray/buffer.c
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Merge pull request #3779 from pv/pep3118-fastpath

ENH: core: add a fast path for PEP3118 buffer string parsing


Compare: https://github.com/numpy/numpy/compare/be9e0f0f1c5e...27e931f7e939


More information about the Numpy-svn mailing list