more indexing optimizations
This commit is contained in:
parent
7baecb20ac
commit
a1c274341e
2 changed files with 33 additions and 14 deletions
|
|
@ -424,6 +424,7 @@ const tool = {
|
|||
models = fallback(models);
|
||||
api.log.emit('mapping faces').pin();
|
||||
let promises = [];
|
||||
// let mark = Date.now();
|
||||
for (let m of models) {
|
||||
let p = worker.model_mapFaces({ id: m.id, opt }).then(data => {
|
||||
// console.log({map_info: data});
|
||||
|
|
@ -432,6 +433,7 @@ const tool = {
|
|||
}
|
||||
Promise.all(promises).then(() => {
|
||||
api.log.emit('mapping complete').unpin();
|
||||
// api.log.emit(`... time = ${Date.now() - mark}`);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue