Timeline for Fast MATLAB, slow Mathematica: Export a matrix as TSV
Current License: CC BY-SA 4.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 14, 2018 at 23:54 | history | edited | Alexey Popkov | CC BY-SA 4.0 |
more informative title
|
Apr 20, 2018 at 17:26 | answer | added | Henrik Schumacher | timeline score: 9 | |
Apr 12, 2018 at 14:01 | comment | added | GenericAccountName | In 11.3, CSV is able to export the data much faster (5.8s compared to 17.8 on my machine) than Table, and is still a Text format. | |
S Apr 12, 2018 at 10:23 | history | suggested | Peter Mortensen | CC BY-SA 3.0 |
Copy edited.
|
Apr 12, 2018 at 10:00 | comment | added | Peter Mortensen | What is CFD? Computational fluid dynamics? | |
Apr 12, 2018 at 9:38 | review | Suggested edits | |||
S Apr 12, 2018 at 10:23 | |||||
Apr 12, 2018 at 6:08 | answer | added | chyanog | timeline score: 5 | |
Apr 11, 2018 at 14:56 | history | edited | xzczd♦ |
edited tags
|
|
Apr 11, 2018 at 14:27 | history | edited | J. M.'s missing motivation♦ | CC BY-SA 3.0 |
edited title
|
Apr 11, 2018 at 13:53 | vote | accept | Erdem | ||
Apr 11, 2018 at 12:30 | history | tweeted | twitter.com/StackMma/status/984046094941376512 | ||
Apr 11, 2018 at 11:11 | history | edited | J. M.'s missing motivation♦ |
edited tags
|
|
Apr 11, 2018 at 10:26 | answer | added | Chris Degnen | timeline score: 12 | |
Apr 11, 2018 at 10:07 | comment | added | Henrik Schumacher |
It's insane. Already Export["a.txt", ExportString[e, "Table"]] is three times faster. I guess the internal implementation of Export uses Write to write data one by one (or at least line by line)...
|
|
Apr 11, 2018 at 9:55 | answer | added | Henrik Schumacher | timeline score: 21 | |
Apr 11, 2018 at 9:28 | comment | added | b3m2a1 |
Generally I'd guess Mathematica's trying to be too clever, but since even this takes like 4 seconds: AbsoluteTiming[txtString =StringRiffle[Map[Map@ToString, e]];][[1]] it seems to be a string handling deficiency.
|
|
Apr 11, 2018 at 9:17 | history | asked | Erdem | CC BY-SA 3.0 |