-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Cache successful paths internally #18
Conversation
Don’t recheck already approved links
Hm, what about caching invalid paths? Then any call is cached and doesn't need to be run twice. |
I thought about that, but actually all the paths in help.github.com succeed already (the tests are green). I'll definitely add it, but it isn't the main slowndown in this case. |
Ah. But I guess it could help those of us who don't have perfect links 😉 |
Can't seem to make this faster. All the slowdown is in the Ethon code. 😿 |
Cache successful paths internally
What's the slowdown in the Ethon code? Are there a particular set of commands that could be sped up? /cc @i0rek |
@parkr thanks for letting me know. I would be happy to help! Also Typhoeus provides a caching interface: https://github.com/typhoeus/typhoeus#caching. You should be able to use this instead. But thats only a side note. |
I knew @i0rek would swoop in and save the day. :superman: |
🤘 |
@i0rek Thanks for jumping in! Using ruby-prof, here are the top few results when executing link checks:
I'm on Typhoeus |
@gjtorikian Looks like it's delegating out to FFI? @i0rek would know way more here. |
Hi @i0rek, sorry for the false alarm. I made some speed improvements that dropped the run of these tests from three minutes down to one: #19 (comment) The change had nothing to do with the URL check, but rather, how the files were iterated over. Thanks for dropping by, though! |
Glad you figured it out. |
Fixes #17.
Heh, so I tried this out on help.github.com, a largeish site. Dropped from 5m12s to 4m34s. Going to learn myself some Ruby tooling and try to trim this down a bit more.