Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL slow initial load because of wzrd.in slow response #217

Closed
meszaros-lajos-gyorgy opened this issue Nov 20, 2018 · 19 comments
Closed

REPL slow initial load because of wzrd.in slow response #217

meszaros-lajos-gyorgy opened this issue Nov 20, 2018 · 19 comments

Comments

@meszaros-lajos-gyorgy
Copy link

Hi!

Ramda REPL used to load instantaneously, but ever since some assets got wired in through wzrd.in the page keeps loading until the response is back or it times out. This usually means waiting for 20+ seconds to fetch sanctuary@latest and ramda-fantasy@latest.

I assume wzrd.in is a CDN. I'm opening the REPL from Hungary, so I don't know, if it is a general issue affecting everyone, or is it just a few unoptimised regions, but it's definitely slow regardless of what computer, OS or browser I'm using.

kepernyofoto 2018-11-20 - 11 51 46

@meszaros-lajos-gyorgy
Copy link
Author

Related issue: ramda/repl#60

@CrossEye
Copy link
Member

CrossEye commented Nov 20, 2018

Anyone who wants to take a swing at this is welcome.

https://bundle.run looks like it might be of help.

Ping: @MattMS @buzzdecafe @craigdallimore

@CrossEye
Copy link
Member

CrossEye commented Dec 3, 2018

I think it's working now.

@CrossEye CrossEye closed this as completed Dec 3, 2018
@kiliw
Copy link

kiliw commented Dec 3, 2018

Not fixed for me. Page load still takes a very long time.

@CrossEye
Copy link
Member

CrossEye commented Dec 3, 2018

Not sure what happened. I swear it was working last night...

Uggh!

@CrossEye CrossEye reopened this Dec 3, 2018
@kiliw
Copy link

kiliw commented Dec 4, 2018

Did you change anything? Just checked it and now its super fast. Thank you very much.

@CrossEye
Copy link
Member

CrossEye commented Dec 4, 2018

I thought I did, and it was super fast for me when I did so, so I posted the "all clear" above. When I got home last night, it was still fast on my machine... for a short while. Then it went back to being slow, and is slow for me right now. I think we managed to hit wzrd.in when it was feeling frisky. I posted a request for help on the REPL issues list. I hope someone who knows the REPL better will get back to me today.

@meszaros-lajos-gyorgy
Copy link
Author

I temporarily blocked all requests towards wzrd.in and that kinda solved the situation for me.

@kiliw
Copy link

kiliw commented Dec 6, 2018

It is again super slow for me. Does someone else has this problem?

@CrossEye
Copy link
Member

CrossEye commented Dec 6, 2018

Oh yes. It's still happening. I haven't gotten any response to my request for help, so I think I'm going to have to dig into how the docs and repl are integrated.

@craigdallimore
Copy link
Contributor

@CrossEye sorry for the delay, I'll try to sort this out in the weekend

@CrossEye
Copy link
Member

CrossEye commented Dec 6, 2018

@craigdallimore:

Thank you. If you have time, that would be great. Or even if you have some pointers, that would be fine. But if you don't find yourself with time, let me know, and I will try to muddle through.

I've not spent any real time with the REPL, and the last few times I've published, there were no REPL changes, so it wasn't a worry. I do really need to learn some more. If nothing else, there are several minor features I'd like to add. (Making tidy a sticky checkbox, the same with clear -- to run between changes -- and, if possible, making the input/output separator draggable.) But there's always so much to do. I'm mostly focused on the possibility of 1.0 at the moment.

@craigdallimore
Copy link
Contributor

@CrossEye I'm afraid I've struggled for time. I've got a PR at #219 which replaces the wzrd.in configuration with bundle.run; I hope this helps! I'm afraid I don't know too much about how deployment works.

@CrossEye
Copy link
Member

CrossEye commented Dec 9, 2018

Thanks, @craigdallimore. I will try to figure it out.

@meszaros-lajos-gyorgy
Copy link
Author

The new bundle.run is blazing fast! It responded back the content in like 30-40 ms! The ticket can be closed!

@CrossEye
Copy link
Member

CrossEye commented Dec 9, 2018

Thanks @craigdallimore! It looks like when I changed the REPL repo, it didn't do anything, but that such was never the correct place to make the change. Once done in the docs repo, there was no separate deployment necessary! Woohoo! 🎆

@craigdallimore
Copy link
Contributor

@CrossEye happy to help! bundle.run was a great pick, I'd never heard of it before this.

@xtuc
Copy link

xtuc commented Feb 25, 2019

Hey, please let me know if I can help with bundle.run (i'm running it).

@CrossEye
Copy link
Member

@xtuc: Thank you. We seem to have gotten this running well using bundle.run. We actually have a mix of sources now, and perhaps we should clean that up; maybe bundle.run could be a one-stop shopping site for everything we include. If that would be possible, I think it would be useful. You can see the network traffic on https://ramdajs.com/repl/ for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants