Quantcast
Channel: Why the difference in performance? Array vs List and `Delete` vs `Nothing` - Mathematica Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by Henrik Schumacher for Why the difference in performance? Array vs...

data2[[3]] = x; // AbsoluteTiming might give a hint.I explain it to myself as follows: At that point when you execute data2[[3]] = x, all rows other than row 3 are internally copied to packed arrays...

View Article



Image may be NSFW.
Clik here to view.

Why the difference in performance? Array vs List and `Delete` vs `Nothing`

In a previous question I was warned against the use of Nothing to delete elements from a list, and rather use Delete. Being of an inquisitive nature, I investigated the performance hit when using...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images