Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.x] Address remaining scoped storage regressions #63480

Merged

Conversation

m4gr3d
Copy link
Contributor

@m4gr3d m4gr3d commented Jul 26, 2022

  • Accelerate common path used to check the storage scope for a given path
  • Update the logic for the get_as_text() method - previous logic loads the content of a text file one byte at a time

Fixes #63434

Validated the fix and the rest of the implementation with ScopedStorageTests.zip

@m4gr3d m4gr3d added bug platform:android topic:core confirmed regression cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release labels Jul 26, 2022
@m4gr3d m4gr3d added this to the 3.5 milestone Jul 26, 2022
@m4gr3d m4gr3d requested review from a team as code owners July 26, 2022 07:26
@m4gr3d m4gr3d force-pushed the fix_remaining_scoped_storage_regressions_3x branch from def0f5f to 1641f8f Compare July 26, 2022 07:35
@akien-mga akien-mga removed the cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release label Jul 26, 2022
core/bind/core_bind.cpp Outdated Show resolved Hide resolved
- Accelerate common path used to check the storage scope for a given path
- Update the logic for the `get_as_text()` method - previous logic loads the content of a text file one byte at a time
@m4gr3d m4gr3d force-pushed the fix_remaining_scoped_storage_regressions_3x branch from 1641f8f to fc2c202 Compare July 26, 2022 14:43
@akien-mga akien-mga merged commit 6c8d9b8 into godotengine:3.x Jul 26, 2022
@akien-mga
Copy link
Member

Thanks!

@ondesic
Copy link

ondesic commented Jul 26, 2022

I am excited to test this out

@m4gr3d m4gr3d deleted the fix_remaining_scoped_storage_regressions_3x branch July 26, 2022 21:19
@wajrou
Copy link

wajrou commented Jul 28, 2022

Thanks a lot! ;-) On my old Galaxy S6 with Android 7 it works very well now.

from 3.4-stable: 15 secs
from 3.5-rc7: i killed app after 2 minutes
from 3.5-rc8: 4-5 secs

@takhimi
Copy link

takhimi commented Jul 29, 2022

Wow. I just tested and it seems super fast to start up my game now. Tested using 3.5rc8 mono with Asus zenfone max pro m1 android 10.

Good job and many thank you for the contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants