Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Slashdot.org News

Achievements and Optimizations 294

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.

This discussion has been archived. No new comments can be posted.

Achievements and Optimizations

Comments Filter:
  • Test CDN? (Score:3, Informative)

    by gmuslera ( 3436 ) on Monday April 06, 2009 @11:53AM (#27476901) Homepage Journal
    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.
  • by Red Flayer ( 890720 ) on Monday April 06, 2009 @12:18PM (#27477261) Journal
    just bookmark www.slashdot.org/users.pl
  • Comment Page (Score:5, Informative)

    by sashapup ( 1025115 ) on Monday April 06, 2009 @12:21PM (#27477309) Homepage
    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.
  • by coryking ( 104614 ) * on Monday April 06, 2009 @12:32PM (#27477467) Homepage Journal

    Perl supports Unicode just fine. It is Slashcode [sourceforge.net] 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

  • Re:Sleeker is better (Score:3, Informative)

    by 0xABADC0DA ( 867955 ) on Monday April 06, 2009 @12:53PM (#27477765)

    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...

  • Re:Hope (Score:3, Informative)

    by x2A ( 858210 ) on Monday April 06, 2009 @12:59PM (#27477847)

    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*

  • Re:Sleeker is better (Score:3, Informative)

    by XanC ( 644172 ) on Monday April 06, 2009 @02:21PM (#27479007)

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

  • by sootman ( 158191 ) on Monday April 06, 2009 @03:07PM (#27479677) Homepage Journal

    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...")

  • by HTH NE1 ( 675604 ) on Monday April 06, 2009 @04:43PM (#27480895)

    Know your entities [w3schools.com]:

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

  • by HTH NE1 ( 675604 ) on Monday April 06, 2009 @04:52PM (#27481021)

    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.

  • by bar-agent ( 698856 ) on Monday April 06, 2009 @05:05PM (#27481185)
    • 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
  • Re:Sleeker is better (Score:1, Informative)

    by Anonymous Coward on Monday April 06, 2009 @06:26PM (#27482173)
    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...

"A car is just a big purse on wheels." -- Johanna Reynolds

Working...