This application efficiently computes Fibonacci numbers through the utilization of both Web Workers and Shared Workers. This approach ensures rapid results by capitalizing on parallel processing threads. Without employing this technique, direct calculations would incur significant timeouts.
To experience the enhanced performance, you can uncomment the line generateFibonacci0(45); in the app.component.ts file.
https://www.notion.so/Docs-and-materials-in-English-Docs-web-worker-f0167d0337f141a4a5147af4d0a8c930
https://angular.io/guide/web-worker https://angdev.ru/archive/angular9/web-workers/ https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API
!!!!!!!!! https://youtu.be/ctKmHO2yARY?t=602 https://slides.com/sergeymell/fwdays-2018
https://youtu.be/2ry0OsfJtSM https://youtu.be/0mw9emMmiJs https://youtu.be/ZqjDBxt8DYo
https://youtu.be/ho1JEZ5AXjg https://nodejs.org/api/worker_threads.html https://nodejs.org/api/events.html
This project was generated with Angular CLI version 16.1.1.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.