Re use of rust's regular Iterator type

Since you are programming with rust+ffi there are some games you may be able to 
play with ref counting in C to adjust the lifetime of headers returned from an 
Iterator.

What I am suggesting (but I know nothing serious about rust) is running an 
array of header references during an iteration using *Link() that have *Free() 
called when the rust Iterator goes out of scope.

No idea whether that is possible, and be forewarned: a full serial iteration 
over Packages will load 100+ Mytes.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/429#issuecomment-381244609
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to