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
The thing is that while enumerating Objective-LevelDB keeps all values in memory, even the ones that don't match the predicate. Not even lazy evaluation solves the issue here.
Am I doing something wrong? Can something be done to improve on memory usage?
The text was updated successfully, but these errors were encountered:
I have added an @autoreleasepool within your for loop in the enumeration method. It did improve the memory footprint, however I am not sure if the autoreleasepool is apliable there. I am no expert in memory handling.
@tiagoveloso where did you add the @autoreleasepool? I tried adding it in a few places with no luck. @matehat did you ever get around to looking at this? Thanks guys!
I am trying to enumerate a database finding only the values that match a given predicate.
Here is my code:
The thing is that while enumerating Objective-LevelDB keeps all values in memory, even the ones that don't match the predicate. Not even lazy evaluation solves the issue here.
Am I doing something wrong? Can something be done to improve on memory usage?
The text was updated successfully, but these errors were encountered: