hello-smile6 / neofetch-js

Neofetch for the web.
https://neofetch.vercel.app
GNU General Public License v3.0
4 stars 2 forks source link

`neofetch.js` takes 130 ms to run #13

Open hello-smile6 opened 2 years ago

hello-smile6 commented 2 years ago

Data from https://web.dev/measure

URL Start Time Duration
/neofetch.js(neofetch-js-lzbwscpsb-9pfs.vercel.app) 2,055 ms 130 ms
/npm/xterm(cdn.jsdelivr.net) 2,185 ms 99 ms

How can we decrease the execution time? Maybe rewrite parts in WebAssembly and store static binaries? (Seriously)

webdev03 commented 2 years ago

getASCII is probably causing the most delay.

hello-smile6 commented 2 years ago

getASCII is probably causing the most delay.

Would strict mode for that function be possible? Strict mode is supposed to improve execution speed.

hello-smile6 commented 2 years ago

@webdev03

webdev03 commented 2 years ago

Try it!

hello-smile6 commented 2 years ago

Try it!

Okay, I will

hello-smile6 commented 2 years ago

@webdev03 How's my NodeBB server? https://nodebb.9pfs.repl.co/topic/3/well-this-thing-survived-a-restart