mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
ProjectStructureDaemonAnalyzer often gets all modules of the current project for update at once. If there are quite a lot of them (e.g., 5k), MergingUpdateQueue wastes a huge amount of time trying to merge them one by one with complicated rules, though the rules are extremely simple in our case: it's enough to just check updates for equality. A simple hash map works great for this task. So, I added SimpleMergingQueue. This fix helps to reduce queueing tasks for intellij monorepo from ~6sec to less than 0.1sec. GitOrigin-RevId: 33eaf1e7ccc66a1edb28addf7bbaedd00444a30b