3 ms·
You can't embed assembly code in C#, but you can write unsafe blocks of code that deal with manually allocated and deallocated memory, lose array bounds checkin
by moron4hire 12y ago
You can't embed assembly code in C#, but you can write unsafe blocks of code that deal with manually allocated and deallocated memory, lose array bounds checking, and allow for pointer arithmetic.
Also, if you pool resources and use the reinitialization pattern rather than constantly destroying/reacquiring resources, then you can obviate a LOT of garbage collection. It's very common in game programming in C#.