c# - WeakReference vs. List objects -
c# - WeakReference vs. List<JSON> objects -
i have question.
i have json file 6000 complex objects. each object has few of different arrays. need serialize object insert each object database simple structure. after don't need anymore. more efficiency?
using weakreference, import , gc.collect? or list, import , that's all. or should implement idisposable sec case?
greets, greg
you shouldn't have special in case, consume objects gc should take care of naturally.
a weakreference used reference object not prevent referenced object beingness gc, don't see need weakreference here.
c# json performance garbage-collection weak-references
Comments
Post a Comment