houtaroy
houtaroy
[1.5.8. HashMap 有哪几种常见的遍历方式?](https://github.com/Snailclimb/JavaGuide/blob/master/docs/java/collection/Java%E9%9B%86%E5%90%88%E6%A1%86%E6%9E%B6%E5%B8%B8%E8%A7%81%E9%9D%A2%E8%AF%95%E9%A2%98.md#158-hashmap-%E6%9C%89%E5%93%AA%E5%87%A0%E7%A7%8D%E5%B8%B8%E8%A7%81%E7%9A%84%E9%81%8D%E5%8E%86%E6%96%B9%E5%BC%8F) 此处引用公众号文章中, 对于parallelStream遍历方式的性能分析有误 先说结论, 存在阻塞时parallelStream性能最高, 非阻塞时parallelStream性能最低 当遍历不存在阻塞时, parallelStream的性能是最低的: ``` Benchmark Mode Cnt Score Error Units Test.entrySet avgt 5 288.651 ± 10.536 ns/op Test.keySet avgt 5 584.594 ± 21.431...
I upgrade [vue-component-template](https://github.com/houtaroy/vue-component-template) to vite 3