Why do you need an auto-advertisement pool leak instead of releasing it?

Why do you need to delete an autoresource pool and not release it?

+3
source share
2 answers

One reason is garbage collection (not available on iPhone).

release is a no-op with GC enabled, but draining gives a hint to the garbage collector

From docs :

Garbage collection

. , , . , , . ; , , . , . , .

+5

- " Apple ".

" " Apple, .

-2

Source: https://habr.com/ru/post/1763653/


All Articles