Timeline for Speed up replacement of very large alternatives expression
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 28, 2022 at 11:40 | comment | added | Roman |
You can gain a little bit of speed on your v2 with Clear[test]; SetAttributes[test, Listable]; Scan[(test[#] = 0) &, s]; test[x_] = x; test[r] making use of the Listable attribute.
|
|
Dec 28, 2022 at 10:06 | history | edited | Chris Degnen | CC BY-SA 4.0 |
added 21 characters in body
|
Dec 28, 2022 at 9:41 | history | answered | Chris Degnen | CC BY-SA 4.0 |