Erotemic / ibeis

image based ecological information system
Apache License 2.0
47 stars 16 forks source link

The nn_indexer uuid map is never synced to disk #46

Closed Erotemic closed 7 years ago

Erotemic commented 9 years ago

The nn_indexer uuid map maps a set of uuids to a prebuilt nearest neighbor indexer.

In previous versions of the code the mapping was stored on disk, but reading and writing on every query became expensive so an in-memory solution was adopted.

However, the in memory solution nevery syncs itself to disk, so if IBEIS closes the cache is effectively lost even though the neighbor indexes are sitting there on disk. So, this isn't a problem if you never close IBEIS.

There should be a simple mechanism to sync this to disk and load it. I'm currently not sure when these save and load points should be.

Erotemic commented 7 years ago

depricated