topjohnwu
f0533fca70
Simplify su_info cache
The previous implementation is great if multiple different requesters call su rapidly in a very short period of time, however in the real world this is nearly impossible to happen. This comes with quite a big overhead, since it requires two lists and also an everlasting background thread to constantly maintain the lists. The new implementation will spawn a collector thread for each cache miss, and the thread will terminate itself once the data is invalidated.
Description
No description provided
Languages
C++
41.6%
Kotlin
40.9%
Java
11.7%
Shell
4.1%
Python
1.3%
Other
0.4%