Re:Time to First Tweet
by dylandrop on Wednesday July 17, 2013 @05:37PM
(#6060330)
I'm a little confused. How much of this is client-side optimization-specific? It seems like most of these (if not all) are also standards in making your server-side rendering apps faster as well. For example minifying, CDN, GZip, etc. would all be used in a Rails app, not to mention a bunch of these come by default with Rails.
If I'm not mistaken, a bunch of the speed problems with the client-side apps has to do with memory leaks (not addressed) and client-side browser speed (not really addressed). I was wondering if there are any solutions to these.
Re:Time to First Tweet
by sjtgraham on Wednesday July 17, 2013 @07:37PM
(#6060733)
I think Alex is wrong about the GIL causing the VM to block on I/O. Ruby allows a thread to be scheduled when another is blocked on I/O (using rb_thread_select()). In the past 3rd party libs with poorly written C extensions, e.g. mysql gem, didn't take advantage of this functionality hence the effect of threads being blocked with idle CPU. This is no longer the case. However, it should be noted that a single thread runs at a time in YARV.
JRuby does not have a GIL (or GVM (Global VM lock) as it's been called since 1.9), he can use that now if he wants true concurrency, with threads truly executing in parallel.
Re:Time to First Tweet
by Wilya on Wednesday July 17, 2013 @08:36PM
(#6060979)
The fact that you need multiple SQL queries to fetch the user handle seems like a orm fail and not a call for denormalization. Why not, you know, use a join ?
(And I find the fact that Twitter actually cares about their initial load time pretty amusing)
Re:Time to First Tweet
by quahada on Wednesday July 17, 2013 @06:44PM
(#6060528)
There must be a big disconnect between the tech team & the product team. Time to first tweet takes several minutes because the user is forced to follow multiple accounts upon signup. The latency is not the tech. I wonder how much $ goes into shaving off a few milliseconds, despite the fact that even latency zero still results in minute long signup?
*I'm sure it's in twitter's interest to keep the on-boarding the way it is, but that's a separate topic.
Re:Time to First Tweet
by wasd on Wednesday July 17, 2013 @06:10PM
(#6060422)
This was really enjoyable to read. I didn't know too much about Chrome's web auditor. Does anyone have any other suggestions on bench marking for server or client performance?
Re:Time to First Tweet
by dylandrop on Wednesday July 17, 2013 @05:40PM
(#6060336)
I agree about the title, but this was a little unnecessary. I mean, he himself is a pretty well-known front-end dev with a pretty impressive background (http://alexmaccaw.com/). Critique the work, not the author.
If I'm not mistaken, a bunch of the speed problems with the client-side apps has to do with memory leaks (not addressed) and client-side browser speed (not really addressed). I was wondering if there are any solutions to these.
In any case, good article, was pretty helpful.
JRuby does not have a GIL (or GVM (Global VM lock) as it's been called since 1.9), he can use that now if he wants true concurrency, with threads truly executing in parallel.
(And I find the fact that Twitter actually cares about their initial load time pretty amusing)
*I'm sure it's in twitter's interest to keep the on-boarding the way it is, but that's a separate topic.
[edit for clarity]
My comment refers to user signup & composing first tweet.
Instead, it's assorted tips for web app performance -- from someone who used to work at Twitter -- talking about his current side project.
At the end, he name drops other well-known front-end devs to show how cool he is.