From help-request at octave dot org Mon Jan 24 05:12:36 2005 Subject: Re: Very slow filter.cc From: David Bateman To: Miroslaw Kwasniak Cc: help at octave dot org Date: Mon, 24 Jan 2005 12:13:27 +0100 Miroslaw Kwasniak wrote: >On Mon, Jan 24, 2005 at 10:34:12AM +0100, Michael Creel wrote: > > >>By any chances, can the differences be due to changes in random number >>generators? Can you repeat this loading given data from a file? >>Michael. >> >> > >You can see that only filter time was reported ;) > > >> t = cputime; >> y = filter(b,1,x); >> cputime - t >> >> > >To be sure I repeated with loading data from file > >OCTAVE_VERSION = 2.1.63 >ans = 14.030 >OCTAVE_VERSION = 2.1.64 >ans = 4.0900 > > > If as you say it is a fresh CVS, then John's changes to make a, b and x const and not use the "MArray::operator ()" which calls make_unique for y and si are the reason for the speed up. Regards David -- David Bateman David dot Bateman at motorola dot com Motorola CRM +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------