[Numpy-svn] [numpy/numpy] 25518e: ENH: improve VOID_compare performance

GitHub noreply at github.com
Thu May 29 09:36:45 EDT 2014


  Branch: refs/heads/maintenance/1.9.x
  Home:   https://github.com/numpy/numpy
  Commit: 25518e5833b1590f849e189941173563ef2548e1
      https://github.com/numpy/numpy/commit/25518e5833b1590f849e189941173563ef2548e1
  Author: Julian Taylor <jtaylor.debian at googlemail.com>
  Date:   2014-05-26 (Mon, 26 May 2014)

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

  Log Message:
  -----------
  ENH: improve VOID_compare performance

use small memory cache for the temporary data allocation in the compare
loop and use npy_is_aligned instead of the very expensive signed
division.

Improves unaligned compares which occur in structured arrays with
strings:

d = np.ones((2,10000), dtype=np.dtype([('f0', 'S5'), ('f1', '<i4')]))
%timeit np.argsort(d)
100 loops, best of 3: 8.6 ms per loop

vs before:
100 loops, best of 3: 23.7 ms per loop


  Commit: 2f7cb25c7ac9691695ba7d8bf085e7c5c8e201de
      https://github.com/numpy/numpy/commit/2f7cb25c7ac9691695ba7d8bf085e7c5c8e201de
  Author: jaimefrio <jaime.frio at gmail.com>
  Date:   2014-05-27 (Tue, 27 May 2014)

  Changed paths:
    M numpy/lib/twodim_base.py

  Log Message:
  -----------
  STY: Use `.astype`'s `copy` kwarg in `np.tri`

Replace an explicit type check with setting `copy=False` in call to `astype`.


  Commit: 3e09d375f1b3f13c4e2d20c334d6095e467f6524
      https://github.com/numpy/numpy/commit/3e09d375f1b3f13c4e2d20c334d6095e467f6524
  Author: seberg <sebastian at sipsolutions.net>
  Date:   2014-05-28 (Wed, 28 May 2014)

  Changed paths:
    M numpy/lib/twodim_base.py

  Log Message:
  -----------
  Merge pull request #4750 from jaimefrio/tri-sty

STY: Use `.astype`'s `copy` kwarg in `np.tri`


  Commit: 29f9b6e0600cb15f7a846bbc83a46dbac45bd1e9
      https://github.com/numpy/numpy/commit/29f9b6e0600cb15f7a846bbc83a46dbac45bd1e9
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2014-05-28 (Wed, 28 May 2014)

  Changed paths:
    M numpy/lib/nanfunctions.py
    M numpy/lib/tests/test_nanfunctions.py

  Log Message:
  -----------
  BUG: nanpercentile/nanmedian 0-d with output given.

Also some PEP-8 fixes and test improvements


  Commit: c243ca7b2053f486c9a5d924677537d67848c1c4
      https://github.com/numpy/numpy/commit/c243ca7b2053f486c9a5d924677537d67848c1c4
  Author: Julian Taylor <juliantaylor108 at gmail.com>
  Date:   2014-05-29 (Thu, 29 May 2014)

  Changed paths:
    M numpy/lib/nanfunctions.py
    M numpy/lib/tests/test_nanfunctions.py

  Log Message:
  -----------
  Merge pull request #4749 from seberg/0d-nanperc-out

BUG: nanpercentile 0-d with output given.


  Commit: 4d61a3235989ff64a1715e3a8273bff5cd7aeb60
      https://github.com/numpy/numpy/commit/4d61a3235989ff64a1715e3a8273bff5cd7aeb60
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2014-05-28 (Wed, 28 May 2014)

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

  Log Message:
  -----------
  Merge pull request #4746 from juliantaylor/void-compare-opt

ENH: improve VOID_compare performance


  Commit: f731d17e57fb36523ede1265b2f48c0d33c3254e
      https://github.com/numpy/numpy/commit/f731d17e57fb36523ede1265b2f48c0d33c3254e
  Author: Sebastian Berg <sebastian at sipsolutions.net>
  Date:   2014-05-29 (Thu, 29 May 2014)

  Changed paths:
    M doc/source/reference/arrays.indexing.rst

  Log Message:
  -----------
  DOC: Rework the advanced indexing documentation.

Mostly makes the advanced indexing doc much more example based,
and prominently mentions the np.ix_ function.
Some subtleties (some of which are new) are also mentioned.


  Commit: 075872dc3d35c0c3c904b046621e7876c37b179a
      https://github.com/numpy/numpy/commit/075872dc3d35c0c3c904b046621e7876c37b179a
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2014-05-29 (Thu, 29 May 2014)

  Changed paths:
    M doc/source/reference/arrays.indexing.rst

  Log Message:
  -----------
  Merge pull request #4076 from seberg/advanced-indexing-doc

DOC: Rework the advanced indexing documentation.


Compare: https://github.com/numpy/numpy/compare/c24cc4e36a52...075872dc3d35


More information about the Numpy-svn mailing list