Building high p erformance jscript applications
1 / 18

- PowerPoint PPT Presentation

  • Updated On :

PC53. Building High P erformance JScript Applications.  Sameer Chabungbam Program Manager Microsoft Corporation. Agenda. What affects Script performance? The IE8 JScript Profiler Native JSON Support. IE8 Browser Subsystem. Internet Explorer. HTML Parser. Layout. Rendering.

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
Download Presentation

PowerPoint Slideshow about '' - shae

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Building high p erformance jscript applications l.jpg


BuildingHigh PerformanceJScriptApplications

 Sameer Chabungbam

Program Manager

Microsoft Corporation

Agenda l.jpg

  • What affects Script performance?

  • The IE8 JScript Profiler

  • Native JSON Support

Ie8 browser subsystem l.jpg
IE8 Browser Subsystem

Internet Explorer

HTML Parser





IE8 Browser Subsystem

Ie8 jscript profiler l.jpg


IE8 JScript Profiler

Ie8 jscript profiler6 l.jpg
IE8 JScript Profiler

  • Uses script engine instrumentation

  • Export data to CSV

  • Shows calls to JScript Built-in methods

  • Handles anonymous functions

var Shape = { Area : function (){...} //anonymous function 1};

Foo = function (){...} //anonymous function 2

Ie8 jscript profiler architecture l.jpg
IE8 JScript ProfilerArchitecture

Host (Internet Explorer)

  • Host creates the script engine(s)

  • Script Engine creates Logger when profiling is enabled

    • Logger handles callbacks from the script engine

  • Profiler Core collects and analyzes the performance data

  • Profiler GUI displays the performance report

Script Engine

Profiler GUI


Profiler Core

Ie8 jscript profiler api iactivescriptprofilercontrol l.jpg
IE8 JScript Profiler APIIActiveScriptProfilerControl

Host (Internet Explorer)

  • Implemented by Script Engines

  • Methods

    • StartProfiling

    • StopProfiling

    • SetProfilerEventMask

Script Engine

Profiler GUI



Profiler Core

Ie8 jscript profiler api iactivescriptprofilercallback l.jpg
IE8 JScript Profiler APIIActiveScriptProfilerCallback

Host (Internet Explorer)

  • Implemented by Profile Logger

  • Handles callbacks from the script engine

  • Methods

    • Initialize

    • Shutdown

    • ScriptCompiled

    • FunctionCompiled

    • OnFunctionEnter

    • OnFunctionExit

Script Engine

Profiler GUI




Profiler Core

Native json support l.jpg
Native JSON Support

  • Simple

    • Javascript like syntax


"name“ : "Sameer Chabungbam",

"email" : "[email protected]",

"phone" : [

"+91 40 669 42615",

"+91 9949 75 4546"



Native json l.jpg


Native JSON

Native json support12 l.jpg
Native JSON Support

  • Fast

  • Secure

  • ECMAScript “3.1” Proposal:

    • “JSON” is a new Built-in Object

    • JSON.parse(jsontext)

      • Returns a JScript value – an Object or Array

    • JSON.stringify(value)

      • Returns a JSON string

Other enhancements l.jpg
Other Enhancements

  • CSS Selector API

  • Mutable DOM prototype

  • Data URI

Resources l.jpg

  • Email: [email protected]

  • IE Blogs

  • JScript Blogs

  • MSDN Documentation

    • Profiler

    • JSON

  • IE8 Beta 2

  • JSON

Evals recordings l.jpg
Evals & Recordings

Please fill out your evaluation for this session at:

This session will be available as a recording at:

Please use the microphones provided l.jpg


Please use the microphones provided

Slide17 l.jpg

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.