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

GitHub noreply at github.com
Wed Feb 26 12:02:24 EST 2014


  Branch: refs/heads/maintenance/1.8.x
  Home:   https://github.com/numpy/numpy
  Commit: fb9ab547d14d878b44fbcd996ef09aa485d4c53d
      https://github.com/numpy/numpy/commit/fb9ab547d14d878b44fbcd996ef09aa485d4c53d
  Author: Pauli Virtanen <pav at iki.fi>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  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: a020e4fbf79b37e5dfe550daf8b311c23b43c5a3
      https://github.com/numpy/numpy/commit/a020e4fbf79b37e5dfe550daf8b311c23b43c5a3
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

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

  Log Message:
  -----------
  BUG: Whitespace stripping in pep3118 format parser and early free

Closes gh-3348


  Commit: abd62ef506487dd3f27d49c718639f0d5363cd5c
      https://github.com/numpy/numpy/commit/abd62ef506487dd3f27d49c718639f0d5363cd5c
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2014-02-25 (Tue, 25 Feb 2014)

  Changed paths:
    M numpy/core/src/multiarray/numpymemoryview.c

  Log Message:
  -----------
  BUG: Hang on to originally filled Py_Buffer view.

When filling the python buffer view object, python sets
view.shape = &view.len (ndim=1, so this works). If we copy
the view info into our Memoryview object instead of having
it directly filled &view.len points into nirvana.

Closes gh-3175


  Commit: 23f4b1eecd7d9c540b2e41c26eaa3e884d0aae06
      https://github.com/numpy/numpy/commit/23f4b1eecd7d9c540b2e41c26eaa3e884d0aae06
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2014-02-26 (Wed, 26 Feb 2014)

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

  Log Message:
  -----------
  Merge pull request #4367 from charris/backport-1.8-buffer-fixes

Backport 1.8 buffer fixes


Compare: https://github.com/numpy/numpy/compare/a89a36e53a87...23f4b1eecd7d


More information about the Numpy-svn mailing list