Optimize the memory usage of creating LSR from langinfo.res

Description

It’s related to , but the java implementation of LSR.java can be further optimized by pooling the java strings.

https://r.android.com/3409682

Our experiment on Android shows that it can reduce the memory ~ 1 MB.

 

ICU4C doesn’t seem to have this problem as it uses a memory pool in LikelySubtagsData

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Priority

Fix versions

Created March 21, 2025 at 4:50 PM
Updated March 25, 2025 at 12:27 AM
Resolved March 25, 2025 at 12:27 AM