Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
哪个更快/更受欢迎。将 json 数据保存在资源的原始文件夹中,或使用 getCacheDir() 保存在应用程序缓存中的本地文件中。
我认为缓存路由在缓存时可能会有所提高,还是我完全误解了这些概念?(极有可能)
提前致谢
拉斯
我认为 RAW 或 ASSETS 文件夹可能更快,因为它与代码紧密集成并存储到设备内部存储器中。