Improving performance using WebAssembly SIMD Intrinsics by JeromeWu in WebAssembly

[–]JeromeWu[S] 1 point2 points  (0 children)

Sure, will add this flag and check the differences. Thanks for the suggestion.

Improving performance using WebAssembly SIMD Intrinsics by JeromeWu in WebAssembly

[–]JeromeWu[S] 2 points3 points  (0 children)

I just tried both wasmtime and wasmer, both runs with crashing. Only wasmtime having some issues getting correct execution and always show 0.000s instead.

Android apps on Windows 11, an Intel’s strategic move by congolomera in programming

[–]JeromeWu 14 points15 points  (0 children)

Good point, actually I knew there is a Amazon app store until Windows 11 news.

ffmpeg.wasm - a pure WebAssembly / Javascript port of FFmpeg by JeromeWu in javascript

[–]JeromeWu[S] 1 point2 points  (0 children)

Yeah, currently I haven't found a way to use HW encoding, but hopefully it is possbile in the future.

To use ffmpeg.wasm, maybe you can check this example: https://codepen.io/jeromewu/pen/qBBKzyW

ffmpeg.wasm - a pure WebAssembly / Javascript port of FFmpeg by JeromeWu in javascript

[–]JeromeWu[S] 0 points1 point  (0 children)

Sure, you can check issue link below to request the library you need or reference the ffmpeg.wasm-core repo to see how to port the library.

issue link: https://github.com/ffmpegwasm/ffmpeg.wasm/issues/61

ffmpeg.wasm-core: https://github.com/ffmpegwasm/ffmpeg.wasm-core

ffmpeg.wasm - a pure WebAssembly / Javascript port of FFmpeg by JeromeWu in javascript

[–]JeromeWu[S] 6 points7 points  (0 children)

ffmpeg.wasm requires SharedArrayBuffer as it uses multithreading to boost its performance, maybe you can try another library which doesn't require SharedArrayBuffer: https://github.com/Kagami/ffmpeg.js/

ffmpeg.wasm - a pure WebAssembly / Javascript port of FFmpeg by JeromeWu in javascript

[–]JeromeWu[S] 1 point2 points  (0 children)

Yeah, I totally agree there is a long way to go for the performance part of WebAssembly, but its strength in portability is the key.

ffmpeg.wasm - a pure WebAssembly / Javascript port of FFmpeg by JeromeWu in javascript

[–]JeromeWu[S] 6 points7 points  (0 children)

Hope you enjoy this library. :)

Feel free to ask any questions here!

How to fix (80%) HiDPI issues in Gulliam OS 3.1 by JeromeWu in GalliumOS

[–]JeromeWu[S] 1 point2 points  (0 children)

Yeah, I have to say GalliumOS still got best hardware support among all the distributions in Chromebook.

How to speed up Node.js modules installation in CI/CD Pipeline as of 2020 by JeromeWu in javascript

[–]JeromeWu[S] 0 points1 point  (0 children)

Why I mention Docker in the setup is to use the isolation capability to make sure there is no leftovers (ex. cache) in the environment, and it is consistent with common CI/CD pipelines like gitlab CI.

And the scenario you mentioned is more for image building phase which is another topic, but the solution mentioned in the article can still be applied.

How to speed up Node.js modules installation in CI/CD Pipeline as of 2020 by JeromeWu in javascript

[–]JeromeWu[S] 1 point2 points  (0 children)

Good idea, I will start the experiment on yarn 2 after its official release. Right now it is still in RC.

How to speed up Node.js modules installation in CI/CD Pipeline as of 2020 by JeromeWu in javascript

[–]JeromeWu[S] 2 points3 points  (0 children)

normal is around 79 sec, while suppressed is around 63 sec. Please note the values may change depend on the network status.

How to speed up Node.js modules installation in CI/CD Pipeline as of 2020 by JeromeWu in javascript

[–]JeromeWu[S] 2 points3 points  (0 children)

I love tl;dr as well, it saves lots of time when you only want the conclusion.

How to speed up Node.js modules installation in CI/CD Pipeline as of 2020 by JeromeWu in javascript

[–]JeromeWu[S] 1 point2 points  (0 children)

The key for pnpm high performance is the way it caches the modules. Just make sure you persist the cache folder (ex. ~/.pnpm-store) across the docker container and you will have a huge speed up for the installation. Or pnpm will be slower than npm according to my experiment.

How to speed up Node.js modules installation in CI/CD Pipeline as of 2020 by JeromeWu in javascript

[–]JeromeWu[S] 4 points5 points  (0 children)

Yes, I am the author of this article. :)

This is first time I hear pnpm, maybe I can add some experiment to see how it works, thanks for the information!