3 dépôts
Implementations of background threading to offload intensive tasks from the main execution thread.
Distinguishing note: Focuses on browser-based multi-threading for UI responsiveness.
Explore 3 awesome GitHub repositories matching web development · Parallel Processing Workers. Refine with filters or upvote what's useful.
Tesseract.js is a JavaScript library that provides optical character recognition capabilities directly within web browsers and Node.js environments. It functions as a client-side engine, enabling the conversion of images containing printed text into machine-readable strings without the need for external APIs or server-side infrastructure. The library distinguishes itself by running the original C++ optical character recognition engine within the browser through WebAssembly modules. To maintain interface responsiveness during intensive computation, it utilizes background threads for parallel p
Offloads heavy image analysis tasks to background threads to keep the main browser interface responsive during intensive computation.
Fuse is a JavaScript fuzzy search library and client-side search engine designed to index and query JSON data. It provides utilities for approximate string matching and ranking results by relevance, allowing applications to perform fast filtering and searching of datasets without a dedicated backend. The library distinguishes itself through a token-based search implementation that supports word-order independence and relevance weighting. It utilizes edit-distance scoring to handle typos and insertions, and employs a system of field weighting to prioritize matches in high-value data keys. The
Uses background workers to process search tasks, preventing the browser's main thread from freezing.
gif.js est un encodeur GIF JavaScript et un quantificateur de couleurs côté client qui génère des fichiers GIF animés directement dans le navigateur web. Il fonctionne comme un exportateur de canvas HTML5 et un processeur d'image, permettant la création d'images animées à partir de sources web sans avoir besoin d'un serveur backend. La bibliothèque utilise des web workers pour décharger les tâches lourdes d'encodage d'image vers des threads en arrière-plan, ce qui empêche l'interface utilisateur du navigateur de se figer pendant le processus de génération. Cette architecture permet à l'outil d'agir comme un processeur d'image web worker pour la génération d'images dynamiques. Le système couvre des capacités pour convertir des frames vidéo en GIF et exporter des animations canvas. Il inclut des fonctionnalités pour gérer le timing des frames, configurer les propriétés de sortie globales telles que les dimensions et le nombre de boucles, et effectuer une quantification des couleurs basée sur une palette pour assurer la compatibilité GIF.
Uses web workers to parallelize heavy encoding tasks and keep the browser UI responsive.