miguelfreitas/twister-core — pull request #232 by dryabov (2014-07-05 12:23:29+00:00)
Title: faster DHT refresh

Users who post messages frequently and who are subscribed to many other users have issue with mentions propagation in DHT (see issues #216, #165). My tests show that it might be because of users have many items in m_storage_table and as a result it takes long time to refresh all of them on DHT. For example, I have about 4000 items that should be refreshed (and about 10000 in total), and update of one item per five seconds "tick" lead to 5.5 hours of full refresh cycle.

My patch allows to update several items per tick, and full refresh cycle should be about 30 minutes.