You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or should I retain only the address of that content. If the content is encoded I guess a copy will be made.
What need to be done in incrementing the reference on ref_content to be sure that gc will not delete it.
"Storing" ref_content in self is incrementing the reference. (Without copy, you are making a new reference).
But it is fix with my commit dee124f of the PR #22
(The same way of your commit 1133c84 but not merged because on branch cython-blend)
Activity
jdcaballerov commentedon Apr 21, 2020
I added this commit 9068761
Do you think it's still not enough to avoid gc ?
mgautierfr commentedon Apr 21, 2020
You added a reference to ZimBlob in the article.
But you also need to keep a reference to the content itself in the ZimBlob.
jdcaballerov commentedon Apr 21, 2020
Do you agree ?
Or should I retain only the address of that content. If the content is encoded I guess a copy will be made.
mgautierfr commentedon Apr 22, 2020
What need to be done in incrementing the reference on
ref_contentto be sure that gc will not delete it."Storing"
ref_contentin self is incrementing the reference. (Without copy, you are making a new reference).But it is fix with my commit dee124f of the PR #22
(The same way of your commit 1133c84 but not merged because on branch cython-blend)