Skip to content

Performance Optimization | Icon bitmap loading could be memoized #4

@bbbjames

Description

@bbbjames

LaunchItem.cs - Icon bitmap loading could be memoized:

private Bitmap? _cachedBitmap;

public Bitmap? GetIconBitmap()
{
    if (_cachedBitmap != null) return _cachedBitmap;
    
    // ... existing loading logic ...
    _cachedBitmap = loadedBitmap;
    return _cachedBitmap;
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions