perf(architecture): Big performance improvements over big databases and files highlight in search. (#63)
Reduction database space over 50%. Change database version to v7. BREAKING CHANGE: databases v6 and v7 are incompatible and need a lot of time for updating (may be even some days/a lot of hours on very big databases)
This commit is contained in:
committed by
GitHub
parent
13ca63b954
commit
6afe85798a
12
src/background/parsetTorrentFiles.js
Normal file
12
src/background/parsetTorrentFiles.js
Normal file
@ -0,0 +1,12 @@
|
||||
module.exports = (filesData) => {
|
||||
if(Array.isArray(filesData))
|
||||
filesData = filesData[0]
|
||||
|
||||
let path = filesData.path.split('\n');
|
||||
let size = filesData.size.split('\n');
|
||||
|
||||
return path.map((pathString, index) => Object.assign({}, filesData, {
|
||||
path: pathString,
|
||||
size: parseInt(size[index])
|
||||
}))
|
||||
}
|
||||
Reference in New Issue
Block a user