Skip to content

Improve the performance of the library #86

@InderKumarRathore

Description

@InderKumarRathore

I feel that reading from plist every time must be time consuming. Need to check how much time it takes to get the device name.

The idea to reduce the time are as follows

  1. Save the device info in the user default keeping in mind that newer version of the lib can have updated names, enum etc. and update if there is new version.

  2. Once we have updates info keep it in internal static variable and always return from it. This will reduce the memory footprint and would be much faster if new instance is created. Also will be faster in subsequent launches as the data will be read from user defaults rather than the plist

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions