Skip to content

Performance and multithreading in browsers + ECMAScript Modules in Web Workers

Notifications You must be signed in to change notification settings

henriquesss/web-worker-processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Performance and multithreading on the Browser

ew-processing

Based on Erick's Wendel Tutorial

https://www.youtube.com/watch?v=-wXPxJYhZeI&list=WL&index=18

Requirements

  • nvm (to download the correct version of Node)
  • csv asset to read and test stuff. You can use this one Kagle

Instalation

Architecture

  • src/controller.js= Intermediador/validador de recursos
  • src/index.js = Centraliza tudo para ser importado pelo index.html
  • src/service.js = Regras de negócio
  • src/view.js = Operacoes de frontend
  • src/worker.js = Operacoes nas threads do navegador

Apprenticeship

  • cat database.csv | wc-l (count the number of lines in a file)
  • Work threads is paralels threads running with main
  • Too much console.log can downgrade de software performance

Todo

  • Improve UI of the project
  • Create a new layer with validations (middleware?)
  • Discover and use a good practice at src/service.jsinstead of lines.shift()
  • Use lib csvtojson instead of function at src/service.js
  • Fix the line numbers

Where i can use Workers?

https://caniuse.com/?search=worker

About

Performance and multithreading in browsers + ECMAScript Modules in Web Workers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published