#58 - Using a pool of web workers

This commit is contained in:
Simon Cambier
2022-10-18 22:20:26 +02:00
parent 31bf65283f
commit 4c212a798e
3 changed files with 55 additions and 25 deletions

View File

@@ -178,9 +178,10 @@ export class SettingsTab extends PluginSettingTab {
indexPDFsDesc.createSpan({}, span => {
span.innerHTML = `Omnisearch will include PDFs in search results.
<ul>
<li>⚠️ Depending on their size, PDFs can take anywhere from a few seconds to 2 minutes to be processed.</li>
<li>⚠️ Texts extracted from PDFs may contain errors such as missing spaces, or spaces in the middle of words.</li>
<li>⚠️ Some PDFs can't be processed correctly and will return an empty text.</li>
<li>This feature is currently a work-in-progress, please report issues that you might experience.</li>
<li>Each PDF can take a few seconds to be indexed, so it may not appear immediately in search results.</li>
</ul>
<strong style="color: var(--text-accent)">Needs a restart to fully take effect.</strong>`
})
@@ -340,7 +341,7 @@ export const DEFAULT_SETTINGS: OmnisearchSettings = {
PDFIndexing: false,
backgroundProcesses: Platform.isMobileApp
? 1
: Math.max(1, Math.floor(require('os').cpus().length / 2)),
: Math.max(1, Math.floor(require('os').cpus().length - 2)),
showIndexingNotices: false,
showShortName: false,