|
|
|
|
|
by throw-qqqqq
500 days ago
|
|
Another cool difference between this and Go’s ‘defer’, is that it doesn’t allocate memory on the heap. Go’s ‘defer’ does and it has a small performance cost compared to just calling the .release() or whatever yourself… shrugs At least this was the case last I did benchmarks of my Go code. Dno if they changed that. |
|