3 ms·
Which version of Julia did you use? @view didn't actually speed up code until 1.5, where they got stack allocated.
by dklend122 6y ago
Which version of Julia did you use? @view didn't actually speed up code until 1.5, where they got stack allocated.
- DNF2 6y agoWell, view could speed up code, but it also had some overhead, so creating lots of views came with a cost that would sometimes outweigh the benefit. But, yeah, version info would be interesting.
- snicker7 6y agoInteresting! But would there really be no perf improvements before 1.5, e.g. with memcpy?
- DNF2 6y agoI commented on this, right next to your question: "Well, view could speed up code, but it also had some overhead, so creating lots of views came with a cost that would sometimes outweigh the benefit." So yes, there was indeed perf improvements previously, they were simply not as lightweight as they are now.
- cycomanic 6y agoThis is julia 1.5.2