[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60984] Load function on Windows is significan
From: |
Maxim Smolskij |
Subject: |
[Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux |
Date: |
Thu, 29 Jul 2021 17:15:18 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36 |
Follow-up Comment #5, bug #60984 (project octave):
[comment #2 комментарий №2:]
> I think there may be something weirdly Microsoft-specific here with the
encoding of text files.
>
> Assuming you have the file 'A.txt' created, can you try this code on both
Linux and Windows?
>
>
> fid = fopen ('A.txt', 'rb');
> tic; data = fread (fid, Inf, '*char'); toc
> fclose (fid);
>
> fid = fopen ('A.txt', 'rt');
> tic; data2 = fread (fid, Inf, '*char'); toc
> fclose (fid);
>
>
> Is there a difference in reading a file based on whether it was opened in
binary versus text mode?
Got following results:
Windows 10:
Elapsed time is 0.024045 seconds.
Elapsed time is 0.046618 seconds.
Ubuntu 20.04:
Elapsed time is 0.0179679 seconds.
Elapsed time is 0.0186241 seconds.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60984>
_______________________________________________
Сообщение отправлено по Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux, Maxim Smolskij, 2021/07/28
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux, anonymous, 2021/07/28
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux, Rik, 2021/07/29
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux, John W. Eaton, 2021/07/29
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux, Rik, 2021/07/29
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux,
Maxim Smolskij <=
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux, Rik, 2021/07/29
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux, Charles Praplan, 2021/07/30
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux, Rik, 2021/07/30
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux, Markus Mützel, 2021/07/30
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux, Rik, 2021/07/30
- [Octave-bug-tracker] [bug #60984] Load function on Windows is significantly slower than on Linux, Markus Mützel, 2021/07/31