Permalink
Browse files

ENH larry.push() is faster.

Closes #53.
  • Loading branch information...
kwgoodman committed Mar 8, 2012
1 parent cfeb7af commit 8eb5778cad40f1ef3dc7ec12046b1ac98ea688dd
Showing with 4 additions and 4 deletions.
  1. +1 −1 RELEASE.rst
  2. +3 −3 la/deflarry.py
View
@@ -27,7 +27,7 @@ la 0.6
- Upgrade numpydoc from 0.3.1 to 0.4 to support Sphinx 1.0.1
- la.farray.ranking() and larry ranking method support `axis=None`
- Generate C code with Cython 0.15.1 instead of Cython 0.11
-- larry.astype() is faster
+- larry.astype(), larry.push() are faster
**Breakage from la 0.5**
View
@@ -3818,9 +3818,9 @@ def push(self, window, axis=-1):
recent, where recent is defined by the window. The filling proceeds
from left to right along each row.
"""
- y = self.copy()
- y.x = push(y.x, window, axis=axis)
- return y
+ label = self.copylabel()
+ x = push(self.x, window, axis=axis)
+ return larry(x, label, validate=False)
def vacuum(self, axis=None):
"""

0 comments on commit 8eb5778

Please sign in to comment.