zhuangxm/clj-rpc — Issue #18: revert to old clean-timeout! method
Author: zhuangxm
Created: 2011-12-15 12:39:07+00:00
State: open

The new method has a possible problem. Because it changes all the data at one time, and cost longer time. If in some extreme case that the atom data is being changed by other thread, will cause the new clean-timeout! always retry and can not finished. The more user data, the bigger the ratio of failure.

The old method that only removes one key at every swap! costs shorter time than new method. and is better though the code of old method is uglier than new one.