Replies: 2 comments
-
The recommended approach is to wrap your updates in
|
Beta Was this translation helpful? Give feedback.
0 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I found that in my code, the value assignment takes a very long runtime (one line of code takes >95% of the total runtime). I am executing value assignments on a very large array. Also, I am aware of the value assignment will create a new array which might be the cause of this issue.
I am currently doing it this way
array = array.at[idxs].set(new_value)
I am wondering if you could give me some suggestions on how could I relieve the overhead of this?
Are there some tricks or walk-around I could use to reach the same goal with a much lighter implementation?
Beta Was this translation helpful? Give feedback.
All reactions