10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-03 09:56:08 +02:00

Acceleration

This commit is contained in:
Anthony Scemama 2020-11-19 23:18:52 +01:00
parent 5d637180c7
commit 768420b677
3 changed files with 4 additions and 7 deletions

View File

@ -111,8 +111,7 @@ draft: false
const subset = sub.filter(d => d.set.isSameSet(exSet)) const subset = sub.filter(d => d.set.isSameSet(exSet))
for (mol of uniq(subset.map(d => d.molecule))) { for (mol of uniq(subset.map(d => d.molecule))) {
const submol = subset.filter(d => d.molecule === mol) const submol = subset.filter(d => d.molecule === mol)
const source = await submol.findAsync(async (d) => { const source = submol.find((d) => {
// const source = submol.find((d) => {
if (db.sets.get(d.set.name)[d.set.index] === "10.1021/acs.jctc.8b01205") { if (db.sets.get(d.set.name)[d.set.index] === "10.1021/acs.jctc.8b01205") {
return d.method.name === "CASPT2" && d.method.basis === "aug-cc-pVDZ" return d.method.name === "CASPT2" && d.method.basis === "aug-cc-pVDZ"
} else { } else {

View File

@ -281,7 +281,7 @@ class dataFileBase {
file = getFullDataPath(file) file = getFullDataPath(file)
// const maxAge= (DebugMode.Enabled,0,600) // const maxAge= (DebugMode.Enabled,0,600)
// var str = await getTextFromFileUrlAsync(file,{"Cache-Control":`max-age=${maxAge}`}) // var str = await getTextFromFileUrlAsync(file,{"Cache-Control":`max-age=${maxAge}`})
var str = await getTextFromFileUrl(file) //TODO var str = await getTextFromFileUrl(file)
break; break;
case File.name: case File.name:
var str = await getTextFromUploadedFileAsync(file) var str = await getTextFromUploadedFileAsync(file)

View File

@ -4,12 +4,10 @@ async function loadAllData() {
fluo: [], fluo: [],
}; };
for (const f of getAbsFilesName()) { for (const f of getAbsFilesName()) {
// dic.abs.push(VertDataFile.load(f,VertExcitationKinds.Absorbtion)) dic.abs.push(VertDataFile.load(f,VertExcitationKinds.Absorbtion))
dic.abs.push(await VertDataFile.loadAsync(f,VertExcitationKinds.Absorbtion))
} }
for (const f of getFluoFilesName()) { for (const f of getFluoFilesName()) {
// dic.fluo.push(VertDataFile.load(f,VertExcitationKinds.Fluorescence)) dic.fluo.push(VertDataFile.load(f,VertExcitationKinds.Fluorescence))
dic.fluo.push(await VertDataFile.loadAsync(f,VertExcitationKinds.Fluorescence))
} }
return dic; return dic;
} }