EvilMindDevs / hms-unity-plugin

The HMS Unity Plugin makes it easy to include Huawei Mobile Services into Unity-based games. Authentication, in-app purchases, push alerts, ads, and interaction with gaming services are just a few of the basic capabilities that this formidable tool makes available to your applications.
https://evilminddevs.gitbook.io/hms-unity-plugin/
311 stars 43 forks source link

[HUP-848] Perf: Update HMSIAPManager.cs to include product information retrieval and logging, and also updated HuaweiMobileService.dll file. #487

Closed Andronovo-bit closed 5 months ago

Andronovo-bit commented 5 months ago

Performance Improves

Imagine productInfoList has 1000 items.

Before: Might perform on the order of 1000 * 1000 = 1,000,000 checks. After: Likely performs around 1000 checks (hashset lookups) + 1000 iterations/inserts at most.

Test

This feature was tested on Android 14 and didn't result in any errors.

Reviewer

@alihan98ersoy