Skip to content

Conversation

@LossyDragon
Copy link
Collaborator

@LossyDragon LossyDragon commented Dec 21, 2025

Description

Did some Micro and Macro benchmarking to squeeze more performance out of methods that are called often.

The goal of this would be performance gains small or big, less memory allocations, and GC pressure from the zip/zstd classes.

Drafting this for now to make sure older android API's support these changes (like in.read(x,y,z)). Along with some thorough testing in real time testing. So far this just passes JUnit testing.

Some notes/thoughts:
A user was also using KV to read UserGameStatsSchema_1245620 using tryLoadAsBinary() and with some benchmarking resulted in ~110ms on average. I'm sure this can be cut down considerably too.

GameNative also utilizes ContentDownloader to download steam apps and KeyValue too to load users libraries and parse PICS (some very large) on Android, so any improvments for them is also a plus.

Checklist

  • Code compiles correctly
  • All tests passing
  • Samples run successfully
  • Extended the README / documentation, if necessary

@LossyDragon LossyDragon marked this pull request as ready for review December 23, 2025 03:39
@LossyDragon
Copy link
Collaborator Author

Most samples that touch these changes worked and tested an older android device down to API 31.

@LossyDragon LossyDragon merged commit cb05f80 into Longi94:master Dec 23, 2025
1 check passed
@LossyDragon LossyDragon deleted the optimizations branch December 23, 2025 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant