MichaelMure / Arbore-qt

Friend-to-friend filesharing app to save the world from dystopia
MIT License
21 stars 1 forks source link

deduplicate Object in memory #21

Closed MichaelMure closed 9 years ago

MichaelMure commented 9 years ago

when an Object is shared by multiple Share or even inside the same Share (for instance, the webui share have two times the same folder), we instanciate mutliple times an Object instance and do multiple time the API request to fetch details.

We can create a pool/cache of Object where we will look into to see if an Object already exist with the same hash and use it.