[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: slow code, optimisation advice needed
From: |
Ian McCallion |
Subject: |
Re: slow code, optimisation advice needed |
Date: |
Wed, 30 May 2018 13:55:07 +0100 |
>From the sample the data is numeric and has a fixed number of columns.
So do you really want it in cells containing character strings? If so
there is not much else you can do IMHO, but if what you really want is
the numbers try
e = dlmread ("C:/Backup/Thermo Backups/2018-05-17.txt");
which runs about 15 times faster.
HTH
Ian
On 29 May 2018 at 13:49, tomkut <address@hidden> wrote:
> Yes Ian, here is a sample 2018-05-17_-_Copy.txt
> <http://octave.1599824.n4.nabble.com/file/t372862/2018-05-17_-_Copy.txt>
> size: about 6MB
> I added:
> n=length(strsplit(d{1}))
> e = cell(length(d),n);
> and that improved speed greatly already.
>
>
>
> --
> Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
>
>
- slow code, optimisation advice needed, tomkut, 2018/05/25
- Re: slow code, optimisation advice needed, Ian McCallion, 2018/05/25
- Re: slow code, optimisation advice needed, tomkut, 2018/05/29
- Re: slow code, optimisation advice needed,
Ian McCallion <=
- Re: slow code, optimisation advice needed, tomkut, 2018/05/30
- Re: slow code, optimisation advice needed, tomkut, 2018/05/30
- Message not available
- Fwd: slow code, optimisation advice needed, Ian McCallion, 2018/05/30
- Re: Fwd: slow code, optimisation advice needed, tomkut, 2018/05/31
Re: slow code, optimisation advice needed, PhilipNienhuis, 2018/05/30