[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40613] exist(..., 'var') slow when variable d
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #40613] exist(..., 'var') slow when variable does not exist |
Date: |
Sun, 17 Nov 2013 23:10:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0 |
URL:
<http://savannah.gnu.org/bugs/?40613>
Summary: exist(..., 'var') slow when variable does not exist
Project: GNU Octave
Submitted by: None
Submitted on: Sun 17 Nov 2013 11:10:48 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Performance
Status: None
Assigned to: None
Originator Name: Christian
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.4
Operating System: GNU/Linux
_______________________________________________________
Details:
Hi,
Don't know if this is already known and fixed, but using 'exist()' to check
existance of a non-existing variable takes a very long time. See code below:
octave> who f aa*
Variables in the current scope:
f
octave> tic, for ii=1:1000, exist('f','var'); end, toc
Elapsed time is 0.0318 seconds.
octave> tic, for ii=1:1000, exist('aaa','var'); end, toc
Elapsed time is 3.579 seconds.
/Christian
PS. Corresponding code on MATLAB 2012b is pretty much instantaneous in both
cases.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40613>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40613] exist(..., 'var') slow when variable does not exist,
anonymous <=
- [Octave-bug-tracker] [bug #40613] exist(..., 'var') slow when variable does not exist, Rik, 2013/11/17
- [Octave-bug-tracker] [bug #40613] exist(..., 'var') slow when variable does not exist, Michael Goffioul, 2013/11/17
- [Octave-bug-tracker] [bug #40613] exist(..., 'var') slow when variable does not exist, John W. Eaton, 2013/11/17
- [Octave-bug-tracker] [bug #40613] exist(..., 'var') slow when variable does not exist, John W. Eaton, 2013/11/20
- [Octave-bug-tracker] [bug #40613] exist(..., 'var') slow when variable does not exist, Rik, 2013/11/20
- [Octave-bug-tracker] [bug #40613] exist(..., 'var') slow when variable does not exist, Rik, 2013/11/20