Hobgoblin
This commit is contained in:
@@ -14,7 +14,7 @@ import type { FaceIndex } from "./types";
|
||||
* Index faces in a file, save the persist the results locally, and put them on
|
||||
* remote.
|
||||
*
|
||||
* This class is instantiated in a Web Worker so as to not get in the way of the
|
||||
* This class is instantiated in a web worker so as to not get in the way of the
|
||||
* main thread. It could've been a bunch of free standing functions too, it is
|
||||
* just a class for convenience of compatibility with how the rest of our
|
||||
* comlink workers are structured.
|
||||
|
||||
@@ -169,7 +169,7 @@ For more details, see [translations.md](translations.md).
|
||||
## Infrastructure
|
||||
|
||||
- [comlink](https://github.com/GoogleChromeLabs/comlink) provides a minimal
|
||||
layer on top of Web Workers to make them more easier to use.
|
||||
layer on top of web workers to make them more easier to use.
|
||||
|
||||
- [idb](https://github.com/jakearchibald/idb) provides a promise API over the
|
||||
browser-native IndexedDB APIs, and is used as our primary tabular database.
|
||||
|
||||
@@ -28,7 +28,7 @@ IndexedDB is a transactional NoSQL store provided by browsers. It has quite
|
||||
large storage limits, and data is stored per origin (and remains persistent
|
||||
across tab restarts).
|
||||
|
||||
Unlike local storage, IndexedDB is also accessible from Web Workers.
|
||||
Unlike local storage, IndexedDB is also accessible from web workers.
|
||||
|
||||
Older code used the LocalForage library for storing things in Indexed DB. This
|
||||
library falls back to localStorage in case Indexed DB storage is not available.
|
||||
|
||||
@@ -15,7 +15,7 @@ export const isDevBuild = process.env.NODE_ENV === "development";
|
||||
* `true` if we're running in the default global context (aka the main thread)
|
||||
* of a web browser.
|
||||
*
|
||||
* In particular, this is `false` when we're running in a Web Worker,
|
||||
* In particular, this is `false` when we're running in a web worker,
|
||||
* irrespecitve of whether the worker is running in a Node.js context or a web
|
||||
* browser context.
|
||||
*
|
||||
|
||||
@@ -5,7 +5,7 @@ import log from "./log";
|
||||
* Key value store schema.
|
||||
*
|
||||
* The use IndexedDB to store arbitrary key-value pairs. The functional
|
||||
* motivation is to allow these to also be accessed from Web Workers (local
|
||||
* motivation is to allow these to also be accessed from web workers (local
|
||||
* storage is limited to the main thread).
|
||||
*
|
||||
* The "kv" database consists of one object store, "kv". Each entry is a string.
|
||||
|
||||
Reference in New Issue
Block a user