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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -