Archived Friendly Reminder: foreach keyword in C# allocates memory in Unity (gamasutra.com)
submitted ago by Zesty
Posted by: Zesty
Posting time: 4.5 years ago on
Last edit time: never edited.
Archived on: 2/12/2017 1:51:00 AM
Views: 349
SCP: 10
11 upvotes, 1 downvotes (92% upvoted it)
Archived Friendly Reminder: foreach keyword in C# allocates memory in Unity (gamasutra.com)
submitted ago by Zesty
view the rest of the comments →
[–] [deleted] 1 point 1 point 2 points (+2|-1) ago (edited ago)
[–] rumayor ago
Did you read the article? It does not have to do anything with C#, it is a compiler bug on Mono. Also some of his recommendations make sense on code that is executed on a tight loop, but is fine to do on instances where it is not executed all the time.
[–] [deleted] ago