Slashdot Mirror


Achievements and Optimizations

This week's code refresh has added a number of really irritating story display bugs that we're working on. But, it also added a number of cool optimizations that should improve performance for a lot of readers. Tap that link below to read a brief description of them, and also a few serious notes about the achievement system we launched last Wednesday.

Ok, Optimizations. These really only affect the Index2 beta users and Firefox users. You should really be in one of these 2 groups.

  • CSS Sprites: Vlad combined a number of our chrome images. Vroom used the same technique to combine our top 25 topic icons into a single image. The top 25 icons appear on 60% of our stories, and the chrome images appear on every page load. These 2 changes dropped perhaps 20 requests from a typical fresh page load. That should be a measurable performance increase for a lot of people.
  • Library Purge: Scott removed the last remnants of the YUI library. This was THE library to use for AJAX a few years ago, but as of now, we have totally ported to jQuery. The last 2 bits that used YUI were some animation bits, and the discussion2 threshold changing floating widget thing. Porting those 2 things to jQuery let us pull several hundred k of JS from our includes. This let us trim another 85k from our compressed JS transfers. We've cut the JS included on Slashdot in half in the last month.
  • Varnish: Jamie installed varnish as a reverse proxy behind the F5 but before our apache. Really this won't be a significant performance improvement for now. We use a complex system of static pages to cache the most read content on the site, but varnish will at last let us deprecate that ancient system for something much simpler. We'll be experimenting with this more over the week, but the only real change for most cases is that most of our static content can be served w/o the latency of NFS. Not a big deal really, but it's something. But when we purge out the old caching system, a lot of things will be a lot easier to maintain and debug.
  • CDN: We're probably going to test a CDN this week. The performance gains will be minor, but it will let us move 50 megabits of traffic off our main router and distribute that globally. It sure won't hurt.

A note on Achievements. We launched this as an april fools day joke. We're glad many of you got it. We had great fun with it. But achievements are actually a real, working system. And they serve a purpose. Most of the major bits of functionality on Slashdot have a corresponding achievement. Posting a Journal? Getting a Story Accepted? Being Moderated Up? Using all of your Mod Points up? While many achievements are silly jokes: getting the first block of achievements is essentially a tutorial. And getting some of the more complicated achievements would be a useful indicator for a quality contributor to the site. The heavy lifting on this was done by Chris Brown.

We're also experimenting with a thing we call 'Auto-More'. When you get to the end of the page, a second block of articles will be added to your index. The cool thing is that this means we can serve a smaller selection of stories on the main page request. Since 2/3rds of you never read past story #6, that means that you will get your page a little faster. But 10% or so of you get to the bottom of the page. And you will transparently be given more content. We're doing a bunch of logs to see if this works out. It's just an experiment tho, we may kill it if there is a problem. I think it will eventually be connected to the pause/play function available to logged in Index2 users.

This week we intend to start rolling out the Index2 beta to a very small number of firefox users. A good number of you won't notice. Some of you will tho. You won't hurt our feelings by disabling the thing immediately but I hope you give it a shot. It's great on Firefox. It has a few bugs on Safari. It will work on Chrome as soon as Google gets a Mac port out (Hint hint!). As for IE... well, you'll keep the old system for a few more weeks, but you're only like 14% of our users, and you keep shrinking.

Ok, back to work. You too.

12 of 294 comments (clear)

  1. Test CDN? by gmuslera · · Score: 2, Informative

    At least for some site optimization schools (from the point of view of visitors, at the very least) using a CDN is almost a must.

  2. Re:Bring back the old user page! by Red+Flayer · · Score: 4, Informative

    just bookmark www.slashdot.org/users.pl

    --
    "Trolls they were, but filled with the evil will of their master: a fell race..." -- J.R.R. Tolkien on Olog-hai
  3. Comment Page by sashapup · · Score: 5, Informative

    Just annecdotal, since I don't have numbers to back it up, but comment pages seem a LOT faster with the cut over from YUI. The lil floating comment bar used to be PAINFULLY slow in letting me scroll through.

    --
    Excellent.
  4. Re:But does it improve story quality? by coryking · · Score: 4, Informative

    Perl supports Unicode just fine. It is Slashcode itself that is stripping out anything that isn't the Queens ASCII. If I could hazard a guess as to why, it would be some kind of cheap way to prevent XSS attacks or page-widening posts. Dunno

  5. Re:Sleeker is better by 0xABADC0DA · · Score: 2, Informative

    this is one reason I still use antique Netscape 3 here -- it doesn't do CSS or JS, so all I see is plain text, rendered almost instantly.

    In firefox:
        View -> Page Style -> No Style

    Probably you can do this automatically with greasemonkey or something. Noscript will disable all javascript, or only js you want.

    My internet machine is a P3 (albeit with gobs of RAM) ... If the site's "improvements" ever get to where I can't use NS3 to read and post, I'll have to give up Slashdot -- it simply won't be worth the time or the eyestrain

    'Here's a nickel kid. Get yourself a better computer.' Also, nobody else can read Idle stories either...

  6. Re:Hope by x2A · · Score: 2, Informative

    No! It will only make sense to those who <a href="http://www.telegraph.co.uk/scienceandtechnology/technology/technologynews/5105!!! Get it right people! *hmph*

    --
    The revolution will not be televised... but it will have a page on Wikipedia
  7. Re:Sleeker is better by XanC · · Score: 2, Informative

    The Web Developer Toolbar allows you to easily enable and disable things like CSS and images, along with many other handy tools.

  8. Re:But does it improve story quality? by sootman · · Score: 2, Informative

    How about employing someone to proof-read your posts and check the links?

    Hey, don't be so hard on them. Taco made it almost two whole words into this story without a typo. ("This weeks code refresh..." should be "This week's code refresh...")

    --
    Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
  9. Re:But does it improve story quality? by HTH+NE1 · · Score: 5, Informative

    Know your entities:

    • € euro (&euro;)
    • £ pound (&pound;)
    • ‘ left single quotation mark (&lsquo;)
    • ’ right single quotation mark (&rsquo;)
    • “ left double quotation mark (&ldquo;)
    • ” right double quotation mark (&rdquo;)
    • – en dash (&ndash;)
    • — em dash (&mdash;)

    For some reason though &sup2; nor &#178; work for squared, as doesn't &sup3; or &#179; for cubed.

    Other supported named entities: ¥ ¦ © ® ± ¼ ½ ¾ × ÷ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü Ý ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ø ù ú û ü ý ÿ.

    --
    Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
  10. Re:But does it improve story quality? by HTH+NE1 · · Score: 3, Informative

    In general, sure. But suppose you need to mention that "A MÃÃse once bit my sister". This needs to be fixed.

    Use &oslash;: A Møøse once bit my sister.

    --
    Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
  11. Re:But does it improve story quality? by bar-agent · · Score: 4, Informative
    • ellipsis (&hellip;) — hm, that doesn't work.
    • ellipsis (&#2026;) — nope.

    Really, entities are a hack. You should be able to enter the characters directly. Here's what happens when I try:

    • euro — hidden
    • £ pound — works!
    • ' left single quote — turned into straight quote
    • ' right single quote — turned into straight quote
    • " left double quote — turned into straight quote
    • " right double quote — turned into straight quote
    • - n-dash — turned into normal hyphen
    • -- m-dash — turned into two normal hyphens
    • ... ellipsis — turned into three periods
    --
    i'd hit it so hard, if you pulled me out you'd be the king of britain [bash.org]
  12. Re:Sleeker is better by Anonymous Coward · · Score: 1, Informative

    Yep, you found it. It takes no time to build, really. Be sure to check the many config options (./configure --help | less) when building. It handles enough JS to deal with posting and logging in on slashdot, plus it does tables pretty well, and even has tabbed browsing. I find it to be the most useful of the text browsers.
    I don't know if it's actually related to lynx, don't think so...