News for hackers. Stuff that matters.
Re:Show HN: I made an open-source Bitly alternative by bluetidepro on Thursday September 22, 2022 @11:23AM (#32940160)
FYI you have some rogue script or something on the page that brings my pretty hefty windows 10 pc to a halt. It spikes my CPU to 100% and the page is in like 1FPS. I think it's your countdown thing for pricing. Something is def up with it, you may want to disable that temp.
Re:Show HN: I made an open-source Bitly alternative by steventey on Thursday September 22, 2022 @04:32PM (#32944256)
Hey everyone! My good friend & colleague Shu just pushed a PR that should mitigate this: https://github.com/steven-tey/dub/pull/13

Can y'all check again and let me know if the performance issue is still bad? Feel free to reply here or send me an email at steven[at]dub.sh

FYI Shu (https://github.com/shuding) is the creator of the globe library that I'm using on the home page: https://cobe.vercel.app, it's really good!

Re:Show HN: I made an open-source Bitly alternative by stjohnswarts on Thursday September 22, 2022 @01:26PM (#32941981)
I was doing "native compile" of several hundred el scripts for emacs and my computer was fine, clicked on that page and everything started taking a couple seconds to click afterwards lol. Definitely something up with the javascript on there.
Re:Show HN: I made an open-source Bitly alternative by brycewray on Thursday September 22, 2022 @11:49AM (#32940610)
Next.js strikes again. :-)
Re:Show HN: I made an open-source Bitly alternative by dimal on Thursday September 22, 2022 @07:46PM (#32946105)
I'd guess it's the rotating globe canvas animation showing real-time stats.
Re:Show HN: I made an open-source Bitly alternative by steventey on Thursday September 22, 2022 @08:46PM (#32946561)
Yeahhhh...I recently merged a PR that should fix this though! let me know if it's still performing badly!

https://github.com/steven-tey/dub/pull/13

Re:Show HN: I made an open-source Bitly alternative by elforce002 on Thursday September 22, 2022 @05:27PM (#32944850)
FTW!
Re:Show HN: I made an open-source Bitly alternative by sosborn on Thursday September 22, 2022 @12:50PM (#32941482)
Chiming in - brought down my Chrome tab on a Ryzen 3600x. All for a page to display pricing.

I don't get it.

Re:Show HN: I made an open-source Bitly alternative by itslennysfault on Thursday September 22, 2022 @03:11PM (#32943342)
I think it literally killed my M1 MBP during a meeting this morning (had a few tabs and a zoom meeting running). My screen went black and everything locked. I had to hold down the power button to reboot.
Re:Show HN: I made an open-source Bitly alternative by codedokode on Thursday September 22, 2022 @07:34PM (#32946023)
How can a single, unprivileged process in an multi-task OS cause such effect?
Re:Show HN: I made an open-source Bitly alternative by steventey on Thursday September 22, 2022 @07:39PM (#32946059)
I believe it's something to do with the canvas size not being optimized: https://github.com/steven-tey/dub/issues/11#issue-1382789740

I just merged a PR to fix this though – are you still facing this issue?

Re:Show HN: I made an open-source Bitly alternative by adoxyz on Thursday September 22, 2022 @11:29AM (#32940288)
Same thing here. After scrolling about halfway through the page, fans went off and the whole site came to a crawl. Could also be the globe animation.
Re:Show HN: I made an open-source Bitly alternative by steventey on Thursday September 22, 2022 @11:32AM (#32940341)
Ahh yes I believe it's the globe animation, it uses a very simple stripped down version of webgl & threejs (based on the lib: https://cobe.vercel.app/)

Gonna think about how I can optimize that further! Thanks for the headsup y'all!

Re:Show HN: I made an open-source Bitly alternative by redweer on Thursday September 22, 2022 @12:56PM (#32941577)
you could render a mp4 or webm video, it wouldn't be as fancy but would just work
Re:Show HN: I made an open-source Bitly alternative by vidyesh on Friday September 23, 2022 @12:35AM (#32948101)
I genuinely thought it was my graphic driver glitch that for a second all my screens went dark. Not until I read your comment here did I realise they were connected.
Re:Show HN: I made an open-source Bitly alternative by ct0 on Thursday September 22, 2022 @11:31AM (#32940315)
Slows down my pretty basic laptop as well.
Re:Show HN: I made an open-source Bitly alternative by whalesalad on Thursday September 22, 2022 @12:21PM (#32941115)
Re:Show HN: I made an open-source Bitly alternative by Sohcahtoa82 on Thursday September 22, 2022 @12:32PM (#32941270)
You know, if you put your paging file into your Google Drive, Dropbox, etc., you're effectively downloading more RAM.
Re:Show HN: I made an open-source Bitly alternative by Sohcahtoa82 on Thursday September 22, 2022 @02:54PM (#32943106)
I wanted to add to this, but the edit window has ended so...

To go even further, if you have gigabit internet and the data center that hosts your drive is in the same city as you, then putting your swap in cloud storage could potentially be faster than storing it on a hard drive!

Obviously, this is making a lot of assumptions, like your ISP doesn't do any silly routing (I'm in Portland, and for a while a couple years ago, my ISP routed all my traffic through Seattle), assumes the cloud storage provider is using solid state storage, and all the code involved in retrieving it doesn't add more than a couple ms of latency.

Re:Show HN: I made an open-source Bitly alternative by rovr138 on Friday September 23, 2022 @05:31PM (#32957366)
I wonder what we'd need to store data 'in transit'.

There's a delay with data reaching a location, so why can't we send data to ourselves around the globe and when it gets to us, send it around again.. just around and around.

Re:Show HN: I made an open-source Bitly alternative by gpm on Thursday September 22, 2022 @01:37PM (#32942139)
Heh, people have done it with NAS apparently https://superuser.com/a/861203
Re:Show HN: I made an open-source Bitly alternative by hobo_mark on Thursday September 22, 2022 @03:29PM (#32943568)
No joke! Typing this from my phone as it somehow froze the browser on my workstation.
Re:Show HN: I made an open-source Bitly alternative by FlingPoo on Thursday September 22, 2022 @12:40PM (#32941361)
Same here too.... 8% CPU and 95-100% GPU usage (Firefox, latest version/patch)
Re:Show HN: I made an open-source Bitly alternative by punkspider on Thursday September 22, 2022 @11:58AM (#32940777)
It spikes my GPU to 100% as soon as I open the page.
Re:Show HN: I made an open-source Bitly alternative by codegeek on Thursday September 22, 2022 @01:30PM (#32942064)
Yep. Brought my 16GB Macbook Pro to a halt.
Re:Show HN: I made an open-source Bitly alternative by jcuenod on Thursday September 22, 2022 @02:43PM (#32942960)
Sorry, if you want to see the spinning globe, you'll need an M1.
Re:Show HN: I made an open-source Bitly alternative by owenpalmer on Thursday September 22, 2022 @02:20PM (#32942684)
Maybe it's the 3D sphere