Skip to content

Latest commit

 

History

History
3 lines (3 loc) · 496 Bytes

File metadata and controls

3 lines (3 loc) · 496 Bytes

2024-05-24 - [Global Caching for IconifyIcon Lookups]

Learning: Prefix-less icon lookups in IconifyIcon.tsx iterate over multiple large icon sets on every render. Because the component is used heavily (192 times in the project), this linear lookup becomes a rendering bottleneck. Action: Implement a simple global memoization cache (Map<string, any>) for iconData resolution to make icon object lookups O(1) on subsequent renders, avoiding redundant iterations across icon sets.