タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

JavaScriptとarticleとwebworkerに関するefclのブックマーク (7)

  • Audjust - Snappy UIs With WebAssembly and Web Workers

    Published: 2023-08-07 Our web app allows users can change the length of a song or find loops present in it for infinite listening, remixing, or for their next next video edit or performance. After uploading a song, there is an initial server-side analysis step after which the audio can be manipulated completely in the browser. Users can alter the desired length or mark sections of audio to prefer

    Audjust - Snappy UIs With WebAssembly and Web Workers
    efcl
    efcl 2023/09/04
    WebAssemblyでの処理をWebWorkerの中で動かし、メインスレッドをブロックせずに処理を行うという話。 CPUのコア数を超えてWorkerを増やすと問題があるため、ワーカープールを作成しWorker数を制御している。またWorkerから進捗状況
  • Building secure web apps using Web Workers | Mercari Engineering

    Security is paramount for our users, and we at mercari strive to provide a snappy and safe platform. We recently introduced an additional layer of defence by adding Web Workers to secure the access token. It now protects the users from various kinds of attacks, including token theft from Cross Site Scripting (XSS), Cross Site Request Forgery (CSRF), prototype pollution, zero-day npm package vulner

    Building secure web apps using Web Workers | Mercari Engineering
    efcl
    efcl 2022/10/04
    Web Workerでtokenを扱うAuth0方式について。XSSなどでtokenを盗む攻撃のハードニング にはなるが完全な保護は難しく、ツールのサポートなどがまだ足りていないなどの問題もある
  • JavaScript Development: Making a Web Worker optional

    In case you have a lot of JavaScript related logic running inside a main thread or a Web Worker, it makes perfect sense to move expensive logic into another worker. Workers run inside a different thread using their own CPU if possible. However, there can be use cases where in some scenarios there is a lot of JS related workload on a given thread, while in other scenarios this thread is mostly idle

    JavaScript Development: Making a Web Worker optional
    efcl
    efcl 2021/08/16
    重たいロジックを別のWeb Workerで分けることには意味があるが、スレッドがほとんどアイドル状態の場合にWorkerを分けるとpostMessage分の遅延が発生してしまう。 Workerとして分けて実行していた処理を、同じAPIを維持しつつ同
  • WorkerDOM: Concurrency for JavaScript programming with the DOM

    WorkerDOM: Concurrency for JavaScript programming with the DOM
    efcl
    efcl 2018/08/23
    WebWorkerの中で動くDOMの実装のアルファ版を公開したという話。 メインスレッドでの処理が重なるとjankとなるため、WorkerスレッドでDOM APIの処理を行う実験的実装。 HydrateしたデータでWorkerとの間をやりとりし、変更はMutationOb
  • David East - Simplify Web Worker code with Comlink

    Workers are brilliant. A single worker can give the main thread some much needed breathing room, extending an application’s processing capacity. The application’s UI hums along whether you’re processing video, auto-tuning some audio, or generating a dank meme. But if workers are so great, why are they so under utilized? Are UI performance issues not common? That can’t be the case in a world full o

    efcl
    efcl 2018/06/05
    Web Workerの動作についての解説やComlinkを使ったWeb Workerの利用方法について
  • Web Workers to the rescue | ra100 lab

    If you have no idea what Web Workers are, go check out [Using Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) page. Let me start with a little backstory. I've created [small project](https://github.com/ra100/carshare-exporter-viz "Carshare Exporter Visualization"), that shows data from Prometheus timedata on map, and I though, there will be a lot of

    efcl
    efcl 2018/03/11
    Web Workerを使った処理の移譲のコストと効果についての記事。 データの取得と処理をWorkerに移動した場合の処理時間とWorkerへのデータ受け渡しのコストについて
  • JavaScript のスレッド並列実行環境

    これは Chromium Browser アドベントカレンダーの十日目の記事です。記事では Chromium における JavaScript のスレッド並列実行環境について仕様・実装・API の面から包括的に紹介します。ブラウザの内部実装に興味がある人を対象に、各機能の使い方ではなく実行モデルに焦点を当てて説明しているため、難易度は高いです。使い方を知りたい人は MDN などの記事を読んでください。この記事をきっかけに実装解読に挑戦してみる人が一人でも増えると幸いです。 記事を書くにあたり、yuki3 さんに多くのコメントをいただき、議論に付き合っていただきました。ありがとうございました。なお、文責はすべて私 (nhiroki) にあります。誤りや補足、質問などは気軽に GitHub Issue もしくは Twitter へお寄せください。 更新履歴 2018/01/15 Layout

    JavaScript のスレッド並列実行環境
    efcl
    efcl 2017/12/29
    JavaScriptにおけるスレッド関係の機構について。 タスクキュー、Web Workerのモデル、スレッド間のメッセージング、データのコピーと移譲(Transferable)、SharedArrayBuffer、Agentの共有メモリモデル。 Worklet/Tasklet、Web Locks、Thread APIに
  • 1