You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Learning:** Recompiling a Regex within a frequently called mapping function (like `getSubjectBaseName` processing a list of subjects) causes significant CPU overhead and garbage collection pressure in Kotlin/Android.
4
+
5
+
**Action:** Extracted the regex to a file-level private constant (`private val subjectSuffixRegex`) to ensure it is compiled only once, reducing execution time by ~71% in focused benchmarking.
0 commit comments