• Like
  • Save
Web  performance
Upcoming SlideShare
Loading in...5
×
 

Web performance

on

  • 384 views

what's thing we should think about during the performance journey . Major help you to solve these problem .

what's thing we should think about during the performance journey . Major help you to solve these problem .

Statistics

Views

Total Views
384
Views on SlideShare
384
Embed Views
0

Actions

Likes
0
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Web  performance Web performance Presentation Transcript

    • Web PerformanceOptimization
    • Agenda
      What?
      Why?
      How?
    • What does it looks like?
      What?
    • Long and Hard Journey
    • Q: what’s the trip destination?
      Palo Alto ?
      CDC ?
      Sweden?
      Indian ?
    • Why?
    • Language Level
      Most compilers in most programmer
      languages does these optimizations
      for you, but not JavaScript.
    • Structure Level
      Requirement and Design change, some
      time need restructure and redesign our
      Program .
    • Coding Level
      Developer skills are difference, implement
      ways are different, but just one way is the
      best.
    • The most Important one:
      Improve User Experience, make user happy.
    • How?
    • Structure meet the requirement
      Suggestion:
      When we design the structure , we should think about the data size, if the at the beginning of the project, the spec could provide some information of data size we should support, like min / max data size, that
      could help us more.
    • Correctness First
      Correctness First, then do optimize
      Test Performance early(when coding, don’t forget the performance)
      More Testing (Different Browser IE8, FF3/4)
    • When server response slow, what’s the first thing we think about?
      Server Slow?
      Request parameters too much?
      varobjParams = {
      ids: cb.args()[0],
      paramQueryParams: {
      retrieveParamGroups: true,
      retrieveParams: true,
      objGroupQueryParams: { retrieveObjectGroups: true,
      retrieveObjectGroupMembers: true
      } },
      retrieveTags: true };
    • Suitable Operation Interfacewith Back-end
    • Why big data at one time?
    • Back-end
      Front-end
      Data size
      response
      Request
      1
      2
    • If necessary , don’t forget using XSLT process big XML data
    • Don't Optimize Without Measuring
    • A
      B
      C
      D
      Only speed up things that take a lot of time.
    • Avoid unnecessary repaint
    • TODO
    • Code Quality
      High quality code is mostly likely to avoid platform problems.
      Code Conventions for the JavaScript Programming Language
      http://javascript.crockford.com/code.html
      Use JSLint.com. Pass with no warnings.
      Coder refractor
      (https://github.com/kangax/kratko.js)
    • Have regular code readings.
      Don’t wait until release to do code reviews.
      Do team code reading regularly during development.
      Experienced developers can lead by example.
      Novice developers learn from the group.
      Problems can be discovered early.
      Good techniques can be shared early.
    • Questions?
      What’s the destination of our
      long and hard journey?
    • About Author
      Name: Major
      Email: major.yezhouquan@gmail.com
      City: Beijing / China
    • Thanks