[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is e
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow |
Date: |
Thu, 14 Jun 2018 03:38:38 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #9, bug #54100 (project octave):
There are about 20 tests involving fread() in the file io.tst, and of those
maybe a half dozen involve the SKIP parameter:
test/io.tst:%! x(i) = fread (id, [1, 1], type_list{i});
test/io.tst:%! s_out = fread (id, numel (s_in), sprintf ("%s=>%s", cls,
cls));
test/io.tst:%! m_out = fread (id, numel (m_in), sprintf ("%s=>%s", cls,
cls));
test/io.tst:%! y = fread (id, Inf, "uchar=>char");
test/io.tst:%!error <Invalid call to fread> fread ()
test/io.tst:%!error <Invalid call to fread> fread (1, 2, "char", 1, "native",
2)
test/io.tst:%!error fread ("foo")
test/io.tst:%! [data, count] = fread (id);
test/io.tst:%! [data, count] = fread (id, 'int16');
test/io.tst:%! [data, count] = fread (id, [10, 2], 'int16');
test/io.tst:%! [data, count] = fread (id, [2, 10], 'int16');
test/io.tst:%! [data, count] = fread (id, inf, "2*uint8", 2);
test/io.tst:%! [data, count] = fread (id, 3, "2*uint8", 3);
test/io.tst:%! [data, count] = fread (id, 3, "2*uint8", 3);
test/io.tst:%! [data, count] = fread (id, 3, "2*uint8", 3);
test/io.tst:%! [data, count] = fread (id, 3, "2*uint8", 3);
test/io.tst:%! [data, count] = fread (id, [1, Inf], "4*uint16", 3);
test/io.tst:%! [data, count] = fread (id, [3, Inf], "4*uint16", 3);
test/io.tst:%! [data, count] = fread (id, [2, 3], "char");
They mostly seem to require an fwrite() prior to generate a file.
These tests can be run via
octave:7> [p, n, xf, xb, sk, rtsk, rgrs] = test
("/home/linux/octave/octave/octave/test/io.tst")
p = 157
n = 157
xf = 0
xb = 0
sk = 0
rtsk = 0
rgrs = 0
However, this test takes quite long to run so isn't suitable for the
write-and-debug stage.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54100>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow, anonymous, 2018/06/11
- [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow, Dan Sebald, 2018/06/11
- [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow, Michael Leitner, 2018/06/12
- [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow, Dan Sebald, 2018/06/12
- [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow, Michael Leitner, 2018/06/13
- [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow, Michael Leitner, 2018/06/13
- [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow, Dan Sebald, 2018/06/13
- [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow, Dan Sebald, 2018/06/13
- [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow, John W. Eaton, 2018/06/13
- [Octave-bug-tracker] [bug #54100] fread using SKIP larger than zero is extremely slow,
Dan Sebald <=