getsentry / getsentry/sentry-java

Reevaluate usage of CopyOnWriteArrayList

未關閉
#2,820 0 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
Android Improvement
主要語言
Kotlin
星號
1.4k
分支
478
平均合併
3 天 4 小時
30 天內合併 PR
72

描述

### Description

This issue is a followup of https://github.com/getsentry/sentry-java/issues/2815
We use `CopyOnWriteArrayList` in several places. We should be careful, as that could cause OOM Errors (in specific cases).
We should find the hot paths which use it, and evaluate if it makes sense (performance wise) to replace it with an alternative approach.

貢獻指南

開啟貢獻指南

研究方向

先查看後續 issue #2815,接著盤點 sentry-java 中 CopyOnWriteArrayList 的使用情況,並找出此處提到的 hot path。比較每種使用情境下替代方案對效能與記憶體的影響,完成條件是記錄一項明確的決策,說明哪些使用情境(如果有)應該變更。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
performance
Issue 類型
重構
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
30/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。