Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Aggregated Resource Indexes #8

Open
kirillt opened this issue Apr 3, 2022 · 1 comment
Open

Aggregated Resource Indexes #8

kirillt opened this issue Apr 3, 2022 · 1 comment
Labels

Comments

@kirillt
Copy link
Member

kirillt commented Apr 3, 2022

It's necessary to initialize compound indexes, store them somewhere in library process, allow to re-use them, allow to use them as normal indexes. Aggregated indexes must provide interface as close to "plain" index interface as possible. Aggregated indexes should use plain indexes as shards delegating operations to them (execute some operation on all shards, if any succeeded return its result).
https://github.com/ARK-Builders/ARK-Navigator/blob/1d6cfa9a15d95a2ca1d7628042142f972931393f/app/src/main/java/space/taran/arknavigator/mvp/model/repo/index/AggregatedResourcesIndex.kt

Am I right that after we loaded Rust library in an Android app, we can:

  • call methods from it multiple times without re-loading the library
  • expect state be persisted between calls?

Because the same index should be re-usable in different aggregated indexes and also the app can request the same aggregated index again several times, would be unnecessary to re-construct them all the time.

@kirillt
Copy link
Member Author

kirillt commented Sep 16, 2024

This feature will be needed for a general file browser app. For this moment, we limit the scope of apps built on top of ARK by single-folder app with syncing only that folder across devices.

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

No branches or pull requests

2 participants