[Numpy-svn] [numpy/numpy] eb4010: ENH: Add a NpyAuxData c_metadata to PyArray_Descr

GitHub noreply at github.com
Thu May 10 03:45:16 EDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: eb40102ef70ca9a3e2d8953b54db9df90a0a10ee
      https://github.com/numpy/numpy/commit/eb40102ef70ca9a3e2d8953b54db9df90a0a10ee
  Author: Mark Wiebe <mwwiebe at gmail.com>
  Date:   2012-05-09 (Wed, 09 May 2012)

  Changed paths:
    M numpy/core/include/numpy/ndarraytypes.h
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/src/multiarray/descriptor.c

  Log Message:
  -----------
  ENH: Add a NpyAuxData c_metadata to PyArray_Descr

The purpose of this is to allow dtypes with metadata to
have faster C-level performance. With this, datetime64
metadata lookup can become a single C pointer dereference,
compared to a C-string to Python-string conversion +
a Python dict lookup as it is presently.


  Commit: e686b367db354189b1154c2a47cc4b1adcfca1fd
      https://github.com/numpy/numpy/commit/e686b367db354189b1154c2a47cc4b1adcfca1fd
  Author: Mark Wiebe <mwwiebe at gmail.com>
  Date:   2012-05-09 (Wed, 09 May 2012)

  Changed paths:
    M numpy/core/_internal.py
    M numpy/core/include/numpy/ndarraytypes.h
    M numpy/core/include/numpy/npy_deprecated_api.h
    M numpy/core/src/multiarray/_datetime.h
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/src/multiarray/datetime.c
    M numpy/core/src/multiarray/datetime_strings.c
    M numpy/core/src/multiarray/datetime_strings.h
    M numpy/core/src/multiarray/descriptor.c
    M numpy/core/src/multiarray/multiarraymodule.c
    M numpy/core/src/multiarray/scalarapi.c
    M numpy/core/src/umath/ufunc_type_resolution.c
    M numpy/core/tests/test_datetime.py
    M numpy/lib/type_check.py

  Log Message:
  -----------
  ENH: Change datetime64 to use c_metadata instead of metadata


  Commit: b7cb21ac6f0d23d8c330afbf8bb900e85d27f668
      https://github.com/numpy/numpy/commit/b7cb21ac6f0d23d8c330afbf8bb900e85d27f668
  Author: Mark Wiebe <mwwiebe at gmail.com>
  Date:   2012-05-09 (Wed, 09 May 2012)

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

  Log Message:
  -----------
  BUG: Output the datetime64 dtype to the pickle format from 1.6


  Commit: 9d63daee9d7bc050aef46f3a22efed06d9baed4b
      https://github.com/numpy/numpy/commit/9d63daee9d7bc050aef46f3a22efed06d9baed4b
  Author: Mark Wiebe <mwwiebe at gmail.com>
  Date:   2012-05-09 (Wed, 09 May 2012)

  Changed paths:
    M numpy/core/include/numpy/ndarraytypes.h

  Log Message:
  -----------
  ENH: Change NPY_AUXDATA_FREE macro based on PR feedback


  Commit: 2c4f794b9ed9618cb8187af98eb59b73bb380e2e
      https://github.com/numpy/numpy/commit/2c4f794b9ed9618cb8187af98eb59b73bb380e2e
  Author: Mark Wiebe <mwwiebe at gmail.com>
  Date:   2012-05-09 (Wed, 09 May 2012)

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

  Log Message:
  -----------
  DOC: Improve documentation comment from PR 274 comment


  Commit: dc468d1e2cebf350a38e719741f691db2c2f1bdc
      https://github.com/numpy/numpy/commit/dc468d1e2cebf350a38e719741f691db2c2f1bdc
  Author: Mark Wiebe <mwwiebe at gmail.com>
  Date:   2012-05-09 (Wed, 09 May 2012)

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

  Log Message:
  -----------
  STY: Elaborate comment about cloning dtype's c_metadata


  Commit: ddc944eb6ae67de5c0e184505651ca1f50517bbd
      https://github.com/numpy/numpy/commit/ddc944eb6ae67de5c0e184505651ca1f50517bbd
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2012-05-10 (Thu, 10 May 2012)

  Changed paths:
    M numpy/core/tests/test_datetime.py

  Log Message:
  -----------
  BUG: Fix datetime 1.6 pickle compatibility test for Python 3.

In Python 3 the pickle.loads function expects a bytes argument, so
convert the test strings.


  Commit: bb162a291b765a34a2e6fab845c36f34c01357af
      https://github.com/numpy/numpy/commit/bb162a291b765a34a2e6fab845c36f34c01357af
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2012-05-10 (Thu, 10 May 2012)

  Changed paths:
    M numpy/core/_internal.py
    M numpy/core/include/numpy/ndarraytypes.h
    M numpy/core/include/numpy/npy_deprecated_api.h
    M numpy/core/src/multiarray/_datetime.h
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/src/multiarray/datetime.c
    M numpy/core/src/multiarray/datetime_strings.c
    M numpy/core/src/multiarray/datetime_strings.h
    M numpy/core/src/multiarray/descriptor.c
    M numpy/core/src/multiarray/multiarraymodule.c
    M numpy/core/src/multiarray/scalarapi.c
    M numpy/core/src/umath/ufunc_type_resolution.c
    M numpy/core/tests/test_datetime.py
    M numpy/lib/type_check.py

  Log Message:
  -----------
  Merge branch 'pull-274'

* pull-274:
  BUG: Fix datetime 1.6 pickle compatibility test for Python 3.
  STY: Elaborate comment about cloning dtype's c_metadata
  DOC: Improve documentation comment from PR 274 comment
  ENH: Change NPY_AUXDATA_FREE macro based on PR feedback
  BUG: Output the datetime64 dtype to the pickle format from 1.6
  ENH: Change datetime64 to use c_metadata instead of metadata
  ENH: Add a NpyAuxData c_metadata to PyArray_Descr


Compare: https://github.com/numpy/numpy/compare/c869d12...bb162a2


More information about the Numpy-svn mailing list