mzaks / FlatBuffersSwift

This project brings FlatBuffers (an efficient cross platform serialization library) to Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Retain cycle

hassila opened this issue · comments

Seems #21 is back...
cycle

Reproduces during flat bench lazy run.

Yeah it is funny how with memory leak the Lazy run dealloc is 9 ms and without 910 ms. Makes me wonder if somehow pooling all Table classes and Lazy accessors is a good idea.

Hm ... I remember now why I reintroduced the bug. if I have this

LazyVector(count: vectorLength){ [unowned self] in

FlatBuffersGeneratedAPITest doesn't work anymore ...

Ok, solved it.

Looks good now.

Makes me wonder if somehow pooling all Table classes and Lazy accessors is a good idea

#39