WO2012064995A2 - System and method for web applicaiton optimization - Google Patents

System and method for web applicaiton optimization Download PDF

Info

Publication number
WO2012064995A2
WO2012064995A2 PCT/US2011/060254 US2011060254W WO2012064995A2 WO 2012064995 A2 WO2012064995 A2 WO 2012064995A2 US 2011060254 W US2011060254 W US 2011060254W WO 2012064995 A2 WO2012064995 A2 WO 2012064995A2
Authority
WO
WIPO (PCT)
Prior art keywords
server
code
executable
control
instructions
Prior art date
Application number
PCT/US2011/060254
Other languages
French (fr)
Other versions
WO2012064995A3 (en
Inventor
Daniel L. Bannoura
Gyorgy Bozoki
Justin Collins
Original Assignee
Codekko Software, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US12/944,352 external-priority patent/US8667386B2/en
Priority claimed from US12/944,340 external-priority patent/US20120124462A1/en
Priority claimed from US12/944,365 external-priority patent/US20120124555A1/en
Application filed by Codekko Software, Inc. filed Critical Codekko Software, Inc.
Publication of WO2012064995A2 publication Critical patent/WO2012064995A2/en
Publication of WO2012064995A3 publication Critical patent/WO2012064995A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Definitions

  • the World Wide Web provides a convenient platform for sharing information.
  • many services offered through web sites are banking, shopping, and e-mail.
  • many companies now provide customized web pages to each visitor.
  • the customizations include examples such as providing a weather report based on a visitor's location, selecting targeted advertisements, and providing access to a visitor's account with the web site.
  • the web server hosting the web site must create each customized page on demand, as it is requested by a visitor.
  • providing customized web pages can put a strain on the processing resources of the web server.
  • the increasing popularity of web pages also increases the traffic load on network resources that send and receive web pages.
  • a method includes selecting an original web page source code that includes instructions that when executed or interpreted by one or more computers produce a visual output; identifying a server-side executable associated with the original web page source code; identifying a control object used by the server-side executable; analyzing the server-side executable to evaluate how the server-side executable uses the control object; determining whether a substitute object, which provides functionality similar to that of the control object, provides all of the functionality of the control object that is used by the server- side executable; and modifying the original web page source code to use the substitute object instead of the control object, thereby producing a modified web page source code.
  • a method includes analyzing a server- side program associated with a web page; determining automatically whether at least a portion of the server-side program produces, upon execution by a server, a static result; and if the determining step produces a positive result, then automatically modifying the at least a portion of the server- side program to incorporate the static result.
  • a method includes analyzing an application that includes a server-side data validation control; determining whether the data validation control requires access to data that is unavailable to a client; and if the data validation control does not require access to data that is unavailable to a client, then incorporating a client-side data validation program into the application.
  • an apparatus includes a computer-readable physical medium containing instructions that when executed cause a computer to select an original web page source code that includes instructions that when executed or interpreted by one or more computers produce a visual output; identify a server-side executable associated with the original web page source code; identify a control object used by the server-side executable; analyze the server-side executable to evaluate how the server-side executable uses the control object; determine whether a substitute object, which provides functionality similar to that of the control object, provides all of the functionality of the control object that is used by the server-side executable; and modify the original web page source code to use the substitute object instead of the control object.
  • a method in another embodiment, includes requesting a resource and receiving a response including a user interface control declaration and a data array containing properties for the user interface control.
  • the data array is parsed to produce a first property value, and a property of the user interface control is modified to correspond to the first property value.
  • a method includes requesting a resource and receiving a response including a data element that includes a set of properties for a user interface control.
  • the data element is parsed to produce a property value, and a user interface control is instantiated having a property that corresponds to the property value.
  • a method includes identifying a control and generating a source code document including a test instruction statement that accesses an element of the control.
  • the source code document is compiled to a compiled document.
  • One or more matched instructions in the compiled document are identified as corresponding to the test instruction statement.
  • the method then includes forming a pattern using the one or more matched instructions.
  • a method in another embodiment, includes identifying a first instruction and determining a first stack count at the first instruction. Then a second instruction is identified, and a second stack count at the second instruction is determined. The method continues with comparing the first stack count to the second stack count. If the first stack count is equal in value to the second stack count, a portion of code is identified beginning with the first instruction and ending with the second instruction as an instruction set.
  • FIG. 1 illustrates a system for implementing web application optimization.
  • Fig. 2 illustrates an exemplary system for delivering a service or a document to a user.
  • Fig. 3 illustrates an optimization technique for part of a network application that produces a static output.
  • Figs. 4 and 5 illustrate two examples of a menu structure.
  • Fig. 6 illustrates an optimization technique for part of a network application that produces a dynamic output.
  • Fig. 7 illustrates an example .NET control section and associated code behind page.
  • Fig. 8 illustrates an exemplary mapping for some of the properties of a textbox control.
  • Fig. 9 illustrates an object-oriented network application that produces information in a table format.
  • Fig. 10 illustrates an alternate framework for providing an object-oriented network application that displays information in a table format.
  • Fig. 11 illustrates exemplary code portions to further explain an alternate output format.
  • Fig. 12 illustrates an example approach to modifying a compiled CIL program.
  • Fig. 13 illustrates a system for building a database of instruction templates.
  • Fig. 14 illustrates an example of how pages can be optimized when they inherit attributes and content from a master page.
  • Fig. 15 illustrates a process for optimizing a web application.
  • Fig. 16 illustrates a process for analyzing usage of a control object that is part of an application.
  • Fig. 17 illustrates an alternate approach for optimizing an application.
  • Fig. 18 illustrates a database format for storing details about supported controls.
  • Fig. 19 illustrates an example approach to modifying a compiled CIL program.
  • Fig. 20 illustrates a process for identifying a beginning and an end of an instruction set.
  • Fig. 21 illustrates a progression of optimizing an instruction.
  • Fig. 22 illustrates an application optimization system and process.
  • Fig. 23 illustrates an example of optimizing a control.
  • Fig. 24 illustrates another example of optimizing a control.
  • Fig. 25 illustrates a process for rendering a web page.
  • the present disclosure relates generally to the world wide web and a method of improving web pages and web-based applications. It is understood, however, that the following disclosure provides many different embodiments, or examples, for implementing different features of the invention. Specific examples of components and arrangements are described below to simplify the present disclosure. These are, of course, merely examples and are not intended to be limiting.
  • the system includes a server computer 102 that provides access to a web application by producing and transmitting documents such as web pages.
  • the server computer 102 may execute web server software that receives web page requests and responds to the requests by transmitting web pages.
  • Example web server software includes Internet Information Server available from Microsoft and Apache available from the Apache Software Foundation.
  • the web server software selects a source file that is used to produce the requested web page.
  • the source file may be a web page or web page template file.
  • the source file may include executable or interpretable code, and it may refer to a separate file containing executable or interpretable code.
  • the code may access data stored in a database 108.
  • the database 108 may be a SQL database, a file system, a graph database, or any other suitable database.
  • Example database software includes Microsoft SQL Server, Oracle Database, and PostgreSQL.
  • the database 108 may be located on the server computer 102, on another computer, or on group of computers.
  • the web server software executes portions of the code and sends the produced web page to a client computer 104.
  • the client computer 104 is coupled to the server computer 102 through a network 106.
  • the client computer 104 executes web browser software that allows a user to access the web application, for example by requesting a web page from the server computer 102 and displaying the received web page to a user.
  • the web browser software may also execute portions of the received web page. Examples of web browser software include Microsoft Internet Explorer, Apple Safari, Mozilla Firefox, and Google Chrome.
  • the network 106 provides a communication pathway between the client computer 104 and the server computer 102.
  • the network 106 may include multiple wired or wireless connections, and zero or more additional computers may be present in the communication pathway between the client computer 104 and the server computer 102.
  • the network 106 may include an electrical connection, an optical connection, a radio frequency connection, any other suitable communication connection, or a combination of multiple connections.
  • the network 106 may include equipment such as switches, routers, hubs, multiplexers, demultiplexers, modulators, demodulators, and other suitable equipment. Alternately, the network 106 may be a virtual connection in the case of a loopback interface or virtualization software that allows the web browser software and the web server software to execute on the same computer hardware.
  • the network 106 may also include additional clients and servers that are not illustrated. Examples of a network 106 include an internet such as the public Internet, an intranet such as a private corporate network.
  • documents other than web pages may be requested and transmitted by the client 104 and server 102.
  • the documents may be XML documents, JSON documents, or a combination of different document types or formats.
  • the client 104, server 102, and database 108 may include one or more devices (not illustrated) for storing data to and retrieving data from a computer readable medium.
  • the devices may be incorporated into one or more of the client 104, server 102, and database 108, or they may be attached either directly or indirectly, or they may be accessible over a network or data bus, or any combination of these.
  • Example devices include registers, volatile memory such as random access memory, and nonvolatile memory such as a hard drive or optical drive. It is understood that storing data, which is generally binary in nature, to any of these computer readable media requires a transforming the state of a physical article.
  • storing a data bit to a register or to RAM generally involves charging or discharging a capacitor or setting the state of a flip-flop.
  • Storing a data bit to magnetic media generally involves changing the magnetization of one or more grains within the magnetic medium.
  • Storing a data bit to an optical disc generally involves scorching an organic dye or changing the phase of a metal alloy.
  • storing a data bit to a computer readable medium involves updating a physical article so that it contains a representation of the stored data bit. Storing larger or more complex data is achieved by storing all of its constituent bits, whether sequentially or simultaneously or both. References to computer memory or other storage devices throughout are intended to cover any suitable computer readable medium.
  • Fig. 2 illustrated is an exemplary system 200 for delivering a service or a document to a user.
  • the user is an individual, but the user may also be a computer, service, process, controller, or any other type of user.
  • the user uses a client program, illustrated as web browser 202, to initiate a request for information, such as a web page, XML response, or other document.
  • An example of a request is an HTTP GET or POST message.
  • the request is sent to a server program, illustrated as a web server 204, although other types of servers are also possible.
  • the web server 204 is a computer running Microsoft Internet Information Server (IIS), but other server or web server software are also contemplated.
  • IIS Microsoft Internet Information Server
  • the web server passes the request to an application framework 206, illustrated as the object-oriented .NET Framework available from Microsoft although other application frameworks, including both object-oriented and non- object-oriented application frameworks, are also contemplated.
  • the request is identified as a request for a specific web page 208, illustrated in this example as a web page labeled "Products. aspx.” It is understood that the request may also identify an object, procedure, or command for producing a web page or other suitable response to the request.
  • the web page 208 is a server- side executable program that includes any number of sections of HTML 210 and server scripting 212.
  • the sections of HTML 210 may optionally include additional non-HTML content, such as JavaScript code, comments, or other content.
  • the server scripting 212 may identify or define objects, such as .NET controls, for producing a relevant portion of the response.
  • the web page 208 as illustrated has an associated code-behind page 214, which may be shared with other web pages. It is understood that some web pages, or parts of web pages, may not have an associated code-behind page.
  • the code-behind page 214 includes additional server-side executable code used in generated a response to the request from web browser 202.
  • the code-behind page 214 may be written in any suitable language, including for example Visual Basic or C#, and may be compiled before or during execution. [0042]
  • the application In response to the received request from the server 204, the application
  • the framework 206 renders the web page 208 to produce a response, illustrated as an HTML output 216.
  • the application framework 206 executes the instructions in the server scripting 212, which may cause the instantiation of one or more objects corresponding to the .NET controls in server scripting 212.
  • the application framework 206 may also execute functions, procedures, and/or methods in the code-behind page 214, which may in turn cause the instantiation of additional objects.
  • the instantiated objects may produce some or all of the contents of the HTML output 216.
  • the HTML output 216 may be specifically tailored to the received request, for example, by incorporating information about the user, for example, the user' s name, location, or account.
  • the application framework 206 provides the output 216 to the web server 204, which in turn sends the output 216 to the web browser 202 where it is produced for the user.
  • Fig. 3 illustrates an optimization technique 300 for part of a network application that produces a static output. Although the example of Fig. 3 is illustrated using the
  • the network application includes an exemplary web page 302 named
  • the web page 302 includes various sections of HTML code 304 and a .NET control section 306.
  • the .NET control section 306 in this example does not have an associated code behind page.
  • An example .NET control section with no associated code behind page is illustrated in a code segment 400 in Fig. 4, which illustrates an example of a menu structure designed using asp:Menu and asp:MenuItem objects.
  • a .NET control section 306 may be replaced with a combination of HTML and client- side executable code, such as JavaScript.
  • Fig. 6 illustrates an optimization technique 600 for part of a network application that produces a dynamic output. Although the example of Fig. 6 is illustrated using the ASP.NET platform available from Microsoft Corp., it is understood that other technology platforms could be used instead or in addition.
  • the network application includes an exemplary web page 602 named
  • the web page 602 includes various sections of HTML code 604 and a .NET control section 606.
  • the .NET control section 606 in this example has an associated code behind page 608 named Sitename.dll.
  • An example .NET control section and associated code behind page is illustrated in code segments 700 and 702, respectively, in Fig. 7.
  • Rendering the Products. aspx web page in the standard .NET framework causes the instantiation of the object or objects defined in the .NET control section 606. Rendering may also cause the execution of the corresponding code behind, such as some or all of the code segment 700 of Fig. 7.
  • the code behind code segment 700 accesses an object's functionality, properties, and events through various methods associated with the object. Execution of these methods at runtime requires first locating the appropriate class associated with the object, then locating the called method for that class or a superclass, and then finally executing the corresponding instructions of the method.
  • the optimization technique 600 includes substituting an optimized web page 612 for the web page 602.
  • the optimized web page 612 includes an optimized control section 610 in place of the .NET control section 606 used in web page 602.
  • the optimized control section 610 causes the instantiation of one or more optimized objects corresponding to the object or objects instantiated by the .NET control section 606.
  • the optimized objects are of an optimized control class that represents all control properties as a simple array, such as a string array or a data array. This prevents unnecessary function calls, object accesses, and object hierarchy overhead.
  • the optimized control section 610 may use only HTML, JavaScript, or a combination of both to create a corresponding control object, thus eliminating the need to instantiate any corresponding objects during execution or rendering.
  • Code segment 702 corresponding to the optimized code behind code segment 614, stores and accesses various control properties in a string array named ControlString.
  • the control's text may be stored as ControlString[l], the background color as ControlString [2], and the font style as ControlString[3].
  • executing the OnChangeEvent() of code segment 702 does not require finding or executing any methods associated with storing or retrieving control properties. Instead, the properties can be set and accessed through direct memory accesses to a string array.
  • Fig. 8 illustrates an exemplary mapping 800 for some of the properties of a textbox control. As illustrated, the mapping is written as an XML document, but it is understood that the mapping may be in any format.
  • the optimized control section 610 may produce an HTML output similar to or the same as the .NET control section 606.
  • the produced output to be in an alternate format that is more memory efficient.
  • an HTML output for an input text field includes various delimiters such as ⁇ input> and ⁇ /input> tags, thus adding at a minimum fifteen additional characters of output for every input text field in the output. Additional delimeters may also be part of an HTML output.
  • the output may additionally include instructions executable by a client to reformat the alternate format output to an HTML format.
  • the client- side executable instructions may be a JavaScript routine.
  • the output may include a reference to such instructions, such as a JavaScript function call, while the detailed instructions themselves are accessed from another location, such as a separate JavaScript file.
  • the JavaScript routine is executed by the client and results in creating an HTML output using the provided data and properties.
  • the HTML output can then be rendered by the client. Because the alternate format output does not include all of the mark-up tags associated with a fully-tagged HTML output, the size of the optimized output produced by optimized control section 610 may be less than a corresponding HTML output produced by the .NET control section 606.
  • Fig. 9 illustrates an object-oriented network application 900 that produces information in a table format.
  • ASP.NET platform available from Microsoft Corp., it is understood that other technology platforms, whether object-oriented or non-object-oriented, could be used instead or in addition.
  • the network application 900 instantiates a GridView object 902, which in the .NET framework is a control object for producing a tabular output.
  • the control object may be any kind of control or object, and the control object may or may not produce a visible output.
  • the control object may be a property object, such as a color object.
  • the GridView object 902 either instantiates or communicates with a DataSet control 904, which provides an interface to a data store 906, such as a file or database.
  • the DataSet control 904 retrieves raw data 908 from the data store 906 and then provides the data to GridView object 902.
  • the GridView object 902 is customizable by a programmer through various properties 910, events 912, actions 914, and customizations 916. These elements allow the programmer to expand or tailor the functionality of the GridView object 902 to meet the requirements of the network application.
  • additional objects may be instantiated.
  • additional HTML objects 920 may be instantiated. It is well understood that other objects (not illustrated) may also be instantiated during this processing, and that the output may be in another document format, including for example an XML document, a JSON document, or other type of document.
  • Fig. 10 illustrates an alternate framework 1000 for providing an object-oriented network application that displays information in a table format. Like Fig. 9, Fig. 10 is illustrated using the ASP.NET platform available from Microsoft Corp., but it is understood that other technology platforms, whether object-oriented or non-object-oriented, could be used instead or in addition.
  • the framework 1000 includes a OptimizedGridView object 1010.
  • the OptimizedGridView object 1010 is a control object for producing tabular output. But as will be further illustrated below, the OptimizedGridView object 1010 produces a substantially similar or functionally equivalent output while consuming considerably fewer execution and memory resources. More specifically, the instantiation and rendering of an OptimizedGridView object 1010 causes the instantiation of fewer additional objects, or perhaps even does not directly cause the instantiation of any additional objects.
  • the OptimizedGridView object 1010 may provide a subset of the features available with the GridView object 902. For example, the
  • OptimizedGridView object 1010 may implement only the most commonly used features and capabilities of the GridView object 902. In addition, the OptimizedGridView object 1010 may provide features not available with the GridView object 902. Thus, the
  • OptimizedGridView object 1010 may provide a suitable replacement object for applications using the GridView object 902.
  • the OptimizedGridView object 1010 either instantiates or communicates with a DataSet control 1012, which provides an interface to a data store 1016, such as a file or database.
  • the DataSet control 1012 retrieves raw data 1014 from the data store 1016 and then provides the data to OptimizedGridView object 1010.
  • OptimizedGridView object 1010 is able to access all of the same data stores, and through substantially similar mechanisms, as the GridView object 902.
  • the OptimizedGridView object 1010 retrieves the data 1014 through the DataSet Control 1012 and formats the data for presentation as the output 1018.
  • the OptimizedGridView object 1010 retrieves the data 1014 through the DataSet Control 1012 and formats the data for presentation as the output 1018.
  • OptimizedGridView object 1010 preferably produces the output 1018 with a minimum of additional object instantiations. And while the OptimizedGridView object 1010 may produce an HTML output similar or the same as HTML output 918 produced by the GridView object 902, it is preferred for the produced output to be in an alternate format that is more memory efficient. In particular, it is noted that an HTML table output delimits each data element with ⁇ td> and ⁇ /td> tags, thus adding at a minimum nine additional characters of output for every data element within the table. Additional delimeters, such as ⁇ tr> and ⁇ th> tags (and their corresponding closing tags), may also be part of an HTML table output. Thus, it is preferred for the OptimizedGridView object 1010 to produce a more compact output format that includes all of the necessary table contents without unnecessary delimiter characters. An example of such a format is explained more fully below.
  • the output 1018 may additionally include instructions executable by a client to reformat the output 1018 to an HTML format.
  • the client- side executable instructions may be a JavaScript routine.
  • the output 1018 may include a reference to such instructions, such as a JavaScript function call, while the detailed instructions themselves are accessed from another location, such as a separate JavaScript file.
  • the JavaScript routine can create an HTML table output using the provided table data and table properties. The HTML table can then be rendered by the client. Because the output 1018 does not include all of the mark-up tags associated with an HTML table, the size of the output 1018 is less than a corresponding HTML output 918 in Fig. 2.
  • the framework 1000 enjoys a number of advantages over the application 900.
  • instantiation and use of the OptimizedGridView object 1010 requires fewer processing and memory resources when compared with the GridView 902. Because fewer objects are created and destroyed, there is a substantial savings in memory usage. And because the OptimizedGridView object 1010 avoids the use of many objects, those objects' initialization and clean-up routines do not have to be executed, resulting in a reduction in processing time. And since the output of OptimizedGridView object 1010 is smaller than the output of GridView 902, less communication bandwidth is needed to transmit the response back to the requester.
  • the framework 1000 can respond to requests using fewer memory, processing, and communication resources. Because of this increased efficiency, the framework 1000 can handle more requests than the application 900 using the same or equal hardware.
  • Fig. 10 is not limited to handling only table-style controls such as a .NET GridView.
  • the same similar approach can be taken with other .NET controls by replacing a standard .NET control with an optimized replacement that provides some or all of the same functionality but with higher efficiency.
  • Examples of other .NET controls that can be replaced include validation controls, menu controls, list controls, and other controls.
  • Fig. 10 is also not limited to .NET controls, but could be adapted to any other application framework, whether object-oriented or non- object-oriented.
  • an optimized control may be in an alternate format.
  • This alternate format may then be processed by client- side code, such as a JavaScript routine, to produce HTML output for rendering in a web browser.
  • client- side code such as a JavaScript routine
  • Fig. 11 illustrates exemplary code portions to further explain an alternate output format.
  • an original Example. aspx page 1102 includes an ASP.NET TextBox control identified as "tl.”
  • An associated code-behind 1104 defines a function that, when executed, sets the background color of the tl TextBox to blue. It is understood that this is merely an example, and that more complex or sophisticated applications of the disclosed technology are also contemplated.
  • the Example. aspx page 1102 is replaced with an Optimized Example. aspx page 1106, and the associated code-behind 1104 is replaced with an optimized code-behind 1108.
  • the Optimized Example. aspx page 1106 defines an HTML text input field having the same identifier as the ASP.NET TextBox control, "tl.”
  • the Optimized Example. aspx page 1106 also includes a call to a JavaScript function, buildTextbox(), that will initiate the setting of certain settings for the tl text input control when it is later produced by the receiving client.
  • an ASP.NET server-side script section is added to the Optimized Example. aspx page 1106 with a call to a RenderControlStrings() procedure.
  • optimized code-behind 1108 corresponds to the optimized code-behind 1108.
  • the instructions contained in optimized code-behind 1108 is illustrated as being written using C# for the benefit of explanation, but it is understood that the optimized code-behind 1108 may be created as a compiled library using the Common Intermediate Language (CIL) as more fully explained below.
  • CIL Common Intermediate Language
  • a global string array variable, control_textl, and a global integer variable, control_textl_n are defined. These two variables are used to store values assigned to attributes of the tl text input during the server-side rendering of the Optimized
  • Example. aspx page 1106 For example, the statement in the code-behind 1104 that sets the background color to blue is changed into a sequence of statements that will cause the equivalent output. Specifically, the 0 th index position of the control_textl string array is used to store a sequence of property identifiers corresponding to control attributes. As illustrated in Fig. 8, the attribute for background color may be assigned the property identifier 2. Next, the other index positions of the control_textl string array are used to store the assigned values. Thus, in the first position, the RGB value corresponding to the color blue, #0000ff, is stored. Then, the control_textl_n counter is updated so that a next attribute, if any, can be stored.
  • the optimized code-behind 1108 also provides a definition of the
  • the RenderControlStrings() procedure injects JavaScript variable definitions for the control_textl variable used by the buildTextbox() function.
  • An example of the output is shown as an Optimized Example. aspx page after server-side execution 1110. There, the server-side script has been replaced by a JavaScript code portion that defines the control_textl variable as a string array with two strings.
  • Example JavaScript Build Function 1112 illustrates how the control_textl string array may be interpreted to assign the desired attributes to a control, in this example a text input control.
  • the string array's 0 th value is divided into its comma-delimited constituent identifiers. Then, for each of the constituent identifiers, the property associated with the identifier is set to the value of the associated string array index value.
  • the first identifier in the control_textl string array is 2, which corresponds to the background color attribute.
  • the value of the corresponding control_textl string array index position (in this case, index position 1, or "#0000ff ') is thus assigned to that attribute. In this way, the tl text input has its background color properly set to the color blue.
  • Fig. 11 is understood to be merely one example of how one attribute on one type of control can be optimized.
  • the technique can be applied to substantially any attribute and any control, and furthermore various functions and procedures used in the optimization can be reused across multiple controls.
  • DLL dynamic link library
  • CIL Common Intermediate Language
  • the DLL instructions can be decompiled and modified using, for example, tools such as .NET Reflections and Mono Cecil. Suitable alternate tools can be employed when working with frameworks other than .NET.
  • FIG. 12 illustrates an example approach to modifying a compiled CIL program.
  • Original C# source code 1202 includes a statement 1204 setting the background color of a Label control to red. After being compiled by the .NET compiler, the statement 1204 results in the instructions 1206. The instructions 1206 load the specific object instance of the Label, determine a value associated with the color red, and then assign that value to the object instance's BackColor property.
  • the instructions 1206 can be rewritten as the optimized instructions 1208.
  • the optimized instructions 1208 may, for example, correspond to one of the replaced lines of code in the optimized code behind 702 of Fig. 7.
  • Fig. 19 illustrates an example approach to modifying a compiled CIL program.
  • the example of Fig. 19 builds on the previous disclosure of Fig. 12.
  • the compiled instructions 1206 are matched against a pattern 1902.
  • the pattern 1902 which may be stored in the database format described in Fig. 18, represents an instruction set that includes a first block 1904 and a second block 1906, although more or fewer blocks are also contemplated. The number of blocks may depend on the specific control property, method, or event being invoked or referenced by the instructions 1206.
  • the first block 1902 includes a wild card portion 1908 that corresponds to a location in the instructions 1206 where a variable name occurs. Since variable names are assigned by the programmer, they cannot be predicted in advance and the optimization process must take into account that a variable name will change from one application to another, or that multiple variables with different names may be used in a single application.
  • the first block 1902 also includes an object type portion 1910.
  • the second block 1906 includes a base class type portion 1912, which may be the same as or different than the object type portion 1910.
  • the second block 1906 also includes a function signature portion 1914 that identifies a method or function of the base class.
  • n Between the first block 1904 and the second block 1906 are a number of lines, n, that are variable depending on the complexity of the supporting code.
  • the n lines may also include other instruction sets.
  • instructions sets may be nested inside other instruction sets. Because instruction sets may be nested, it is not always apparent where an instruction set begins or ends.
  • Fig. 20 illustrates a process for identifying a beginning and an end of an instruction set.
  • the process implements a stack trace algorithm that evaluates the stack count value by determining how each instruction affects the stack count.
  • IL instructions can either add items to the stack, pop items from the stack, or evaluate items on the stack without affecting the stack count.
  • the first block of an instruction set is identified, for example, by a "ldarg.0" instruction followed by an object type and ID. In the example of Fig. 19, this corresponds to an object type of System.Web.UI.WebControls. Label with the name Controll.
  • an initial stack count is determined.
  • the stack count begins with 2, but the beginning stack count can be any value depending on its location in the IL code.
  • the stack increment of the next instruction is determined.
  • the next instruction is the "ldfld" instruction with a stack increment of +1 because the instruction adds one item to the stack.
  • the stack increment value may be positive, negative, or zero.
  • the stack increment is added to the stack count, resulting in a stack count of 3 in the example.
  • the current stack count (3) is compared to the initial stack count (2). If the current stack count equals the initial stack count, processing continues to step 2012, where the last instruction is identified as the end of the instruction set. If in step 2010 the current stack count does not equal the initial stack count, then processing loops back to step 2006.
  • the "callvirt" instruction has a stack increment of -2 because it pops two items off the stack. This results in the current stack count equaling the initial stack count and indicates that the "callvirt” instruction is the end of the instruction set that begins with the "ldarg.0" and "ldfld” statements.
  • the object type, base class type, and function signature can be identified as shown in Fig. 19. These values and the instruction set are used to query the pattern database for a matching result.
  • the .NET Reflection tool may be used to query the pattern database, which may be implement in pure IL with the patterns created as IL blocks.
  • An example IL block pattern is shown in Fig. 18 as pattern 1810.
  • the pattern 1810 corresponds to the base class type and function signature of the IL instructions in the example of Fig. 19.
  • the optimization process retrieves the pattern 1810 from the pattern database and extracts the instructions therein to replace the IL instructions of Fig. 19.
  • pattern 1810 there is an object type 1812 ("System_Web_UIWebControls_Label”), function signature 1814 ("setText()”), and optimization command and associated block descriptions 1816.
  • object type 1812 System_Web_UIWebControls_Label
  • function signature 1814 setText()
  • optimization command and associated block descriptions 1816 each pattern may have more or fewer blocks.
  • the optimization command or commands may be to ignore, verify, replace, or type change the original instructions. In most instances, the optimization command will be to replace the original IL instructions with optimized counterparts.
  • the optimized counterparts may be optimized relative to the original IL instructions in a variety of ways, including, for example, that the optimized counterparts execute faster, require less memory, access fewer resources, or produce output that requires less time to transmit over a network.
  • Fig. 21 illustrates a progression of optimizing an instruction.
  • the initial compiled IL code 2102 is matched to a pattern 2104.
  • the pattern 2104 is evaluated to provide replacement optimized instructions 2106.
  • Fig. 13 illustrates a system 1300 for building a database of instruction templates.
  • the system 1300 includes a control 1302 that is input to a pattern creation tool 1304.
  • the pattern creation tool 1304 introspects the control 1302 to determine its properties, functions, and events.
  • the pattern creation tool and compiler 1304 then generates and compiles example source code to activate some or all of these properties, functions, and events.
  • the generated source code may be, for example, C# source code or Visual Basic source code.
  • the source code is then compiled to produce a generic form of IL that is analyzed by an IL pattern analysis tool 1306 to identify one or more IL instructions for that correspond to each property, function, or event.
  • the one or more IL instructions are used to generate an IL statement pattern 1308 for each corresponding property, function, or event.
  • the IL statement pattern may include a portion that matches against a wildcard, for example, for matching against a variable name.
  • a replacement pattern 1310 is also provided.
  • These search patterns and replacement patterns are then stored in a database 1312.
  • the database may be an IL dynamic link library (DLL), thus allowing .NET Reflection to be used to read and to search the patterns. Since the properties, functions, and events associated with a control may change with each version of the .NET framework, separate databases 1312 may be created for each supported version of the .NET framework.
  • the system 1300 may operate automatically, allowing a large number of controls to be quickly analyzed.
  • the system 1300 may also operate semi-automatically, such that a user guides and oversees the system's operation but some aspects remain automatic.
  • the initial values of optimized control objects may be stored in a hidden field inserted into a rendered web page.
  • a client sends a subsequent request, such as HTTP POST message
  • the value of the hidden field will be included in the POST message.
  • the initial values retrieved from the hidden field
  • the then-current values also provided in the POST message
  • Fig. 18 illustrates a database format 1800 for storing details about supported controls.
  • the database format 1800 may be used, for example, to organize data stored in databases 1312.
  • the database format 1800 includes a type value 1802 to indicate a control, which may be a specific control or a class of controls.
  • the database format 1800 includes properties 1804, methods 1806, and events 1808. Although described using the plural sense, it is not required that a type value 1802 have multiple properties 1804, methods 1806, and events 1808. Thus, it is understood that a type value 1802 may alternately have zero or more properties 1804, methods 1806, and events 1808.
  • the database format 1800 stores a pattern that matches an IL statement pattern generated by code accessing the corresponding property of the type 1802.
  • the methods 1806 and events 1808 are similarly organized.
  • the database format is organized to allow multiple records to be efficiently stored and searched, thus supporting the code optimization processes described herein.
  • ASP.NET applications can use a concept known as a Master Page that defines attributes and content that are inherited by one or more other pages.
  • Fig. 14 shows an example of how pages can be optimized when they inherit attributes and content from a master page.
  • An ASP.NET master page 1402 includes a dynamic portion 1404 and a static portion 1406.
  • a content placeholder that can contain, for example, either content control A or a content control B.
  • Illustrated is the content control A 1408, which is also divided into a dynamic portion 1410 and a static portion 1412.
  • the dynamic portion 1410 begins with an identifier 1414, and the static portion 1412 ends with a corresponding identifier 1416.
  • the identifiers 1414 and 1416 each have a length of 5 bytes, but it is understood that the identifiers may be longer or shorter, and they may be of unequal length. Part or all of an identifier may identify a file or other data store, either directly or indirectly, that includes additional information for processing the content control. A separate data store, not shown, may store additional information, such as the location of escape sequences or characters that must be replaced before the content is provided to a requester. As illustrated, the identifiers 1414 and 1416 each begin with the control byte value OxOF, which is treated as a reserved byte value that indicates the beginning of a header or footer identifier. The next byte has a value of either 0 or 1.
  • the value 0 indicates that the identifier is a header identifier marking the beginning of a portion, and the value 1 indicates that the identifier is a footer identifier marking the end of a portion.
  • the next three bytes or characters represent an alphanumeric identifier, which in the illustrated example is 31 A. It is understood that identifiers may be structured differently and may have or use any suitable format.
  • the dynamic portion 1410 also includes an empty header 1418, which may be subsequently populated as a GZIP, zlib, or other compression block header.
  • Fig. 15 illustrates a process 1500 for optimizing a web application.
  • the process 1500 begins in step 1502 with identifying a target web application.
  • the target web application may be an entire web site, or just a portion thereof, for example, a single web page.
  • step 1504 an original ASPx page is identified. Then in step 1506, the code- behind associated with the ASPx page, if any, is identified. In step 1508, the compiled code- behind code is decompiled and introspected along with the ASPx page. Because all .NET code compiles to a Common Intermediate Language (CIL) format, processing the compiled code-behind code allows the process 1500 to operate independently of whatever language the code-behind was originally written in. For example, it does not matter for the process 1500 whether the code-behind was written using Visual Basic or C#.
  • CIL Common Intermediate Language
  • step 1508 may be accomplished using, for example, the Reflections toolset that is provided as part of ASP.NET or the Cecil library available as part of the open source Mono project.
  • the code-behind may be analyzed in its original source code format.
  • a custom execution environment can be created for executing the code-behind in a controlled environment that records the actions caused by executing the code-behind.
  • an analysis is made of the objects, methods, properties, and events are used in the code-behind.
  • This analysis may be directed to determining if any ASP.NET server controls are modified or used in the code-behind. Examples of modification or use include if the contents of an object or its properties are changed, if a control triggers a postback event, or if an object is passed as a parameter in a method call.
  • the introspection may include determining how the methods, properties, and events of that GridView control are used.
  • step 1512 a decision is made based on the analysis from step 1510 as to whether the ASPx page and associated code-behind use only the subset of features supported by an optimized replacement control. If only supported features are used, then in step 1514 the ASPx page is rewritten to use the optimized replacement control instead of the original control. If unsupported features are used, then processing continues to step 1516.
  • step 1516 a determination is made whether there are additional controls to be analyzed. If so, then processing returns to step 1510 to handle the next control. If there are no more controls, then processing continues to step 1518.
  • step 1518 a determination is made whether there are additional ASPx pages to be processed. If so, then the next page is identified and processing continues to step 1510 to process it. If there are no more pages, then processing continues to step 1520.
  • step 1520 the changes made in the process 1500 to the web application are saved. As an alternative, the changes may be saved as they are made throughout the process 1500. The changes may be saved to a new location so that the original files associated with the web application are not disturbed.
  • step 1522 the updated web application is deployed. The application may be deployed to a test or production environment.
  • a process 1600 for analyzing usage of a control object that is part of an application may be used, for example, as part of the process 1500.
  • the process 1600 begins in step 1602 with identifying the control's properties that are assigned values by the application.
  • step 1604 the control's methods called by the application are identified.
  • step 1606 the control's events that cause the execution of application logic are identified.
  • steps 1602-1606 identify substantially all of the ways that the application uses the control under analysis.
  • step 1608 it is determined whether a property, method, or event results in a static result.
  • the control may have a color property set to a fixed color and that produces an in-line CSS command or HTML tag property.
  • the determination of step 1608 may be made for each property, method, and event separately, or they may be considered in groups or as a whole. For example, an entire asp:Menu structure and its constituent sub- objects may be evaluated together as a group. If in step 1608 it is determine that the result is static, then in step 1610 the static result can be used in place of the property, method, or event.
  • the static result may be a portion of text, such as HTML, Javascript or other code.
  • the static result may also be a visual styling command, such as a portion of CSS code.
  • step 1612 it is determined whether a replacement optimized control provides a functionally equivalent property, method, or event. If so, then the functionally equivalent property, method, or event is used in step 1614.
  • the replacement optimized control may include executable code that will execute on the server, on the client, or on an intermediary network node.
  • the replacement optimized control may be another object or group of objects or a Javascript routine or portion thereof.
  • step 1616 it is determined whether there are any further properties, methods, or events to be analyzed. If so, then processing returns to step 1608 to handle the next property, method, or event. If not, then processing ends in step 1620 by using the replacement controls and/or static results.
  • step 1612 If in step 1612 it is determined that a replacement optimized control does not provide a functionally equivalent property, method, or event, then the original control will not be optimized and the process ends in step 1618.
  • the process begins in step 1702 with monitoring the application for a request from a client. Then in step 1704, the process continues with capturing the information dynamically accessed by the application in response to the request.
  • the information may be, for example, one or more records from a database associated with the application.
  • step 1706 the application's completed response to the request is captured. Steps 1702 to 1706 may optionally be repeated multiple times to produce multiple captured examples of access information and their associated completed responses.
  • step 1708 the response and accessed information are analyzed to identify which parts of the response were formed using the dynamically accessed information, and conversely, which parts of the response were formed from substantially static data.
  • this analysis step allows the substantially static portions of the response to be identified and separated from the complete response.
  • a response template is produced.
  • the response template incorporates the substantially static data along with placeholder identifiers that indicate where each item of dynamically access information was found in step 1708.
  • the placeholder identifiers either alone or in combination with a data map, indicate the relevant data source for each item of dynamically access information.
  • the placeholder identifier or an associated data map may indicate that a certain field is to contain a user's name as stored in a field on a table in the database.
  • step 1712 a new request is received and responded to using the response template generated in step 1710. Because only the dynamically access information needs to be accessed and processed, and because the remainder of the response is known to be substantially static, the computation burden on a server responding to the new request is dramatically lower.
  • Fig. 22 illustrates an application optimization system and process.
  • the system includes an optimization engine 2202 and associated pattern database 2204. Although illustrated as a single database, it is understood that the pattern database 2204 may include multiple databases.
  • a target web application includes a web page 2206 and code-behind 2208, although the application may of course include many web pages and code-behinds.
  • the optimization engine 2202 parses the web page 2206 to locate and subsequently identify any controls or objects used there.
  • the optimization engine 2202 then loads instruction patterns from the pattern database 2204.
  • the optimization engine 2202 searches for matching patterns in the code-behind 2208. Using information from the pattern database 2204, the optimization engine then replaces instructions in the code-behind 2208 to produce an optimized code-behind 2210.
  • Fig. 23 illustrates an example of optimizing a control.
  • a web page portion 2302 includes a statement declaring a button with ID btnContinue, a text label of "Continue", a width of 200 and a color blue.
  • An associated code behind segment 2304 modifies the button's height to 30 and sets the font to Arial.
  • An optimized web page portion 2306 includes a button declaration as a standard HTML control.
  • the optimized web page portion 2306 also defines a hidden HTML element that contains values representing button properties that are set dynamically.
  • the optimized web page portion 2306 includes a Javascript portion to be executed on the client side to call a buildButton() function that accepts as arguments two control IDs.
  • the first control ID specifies the optimized control and the second control ID specifies the hidden HTML element that contains dynamic properties for the optimized control.
  • the Javascript function may be specific to the particular control being optimized. Alternatively, the function may be common to multiple controls and may accept an additional parameter indicating the type of control to be built.
  • the hidden HTML element encodes dynamic properties using comma separated values. Other encoding approaches may also be used instead of or in addition to comma separation.
  • the first value specifies the total number of dynamic properties, in the example case, there are 2. Since there are 2 dynamic properties, the next 2 values specify index values that identify the specific properties. In the example case, the value 4 indicates that the dynamic property is the height, and the value 30 indicates that the dynamic property is the font. Next, the values of the properties are provided. In the example case, the height is set to the value 30 and the font is set to the value arial.
  • Fig. 24 illustrates another example of optimizing a control.
  • the example begins with the same web page portion 2302 and associated code behind segment 2304 as in the example of Fig. 23.
  • An optimized web page portion 2406 includes two hidden HTML elements, one for statically defined properties and a second for properties that are set dynamically.
  • the optimized web page portion 2406 also includes a Javascript portion to be executed on the client side to call a buildButton() function that accepts as arguments three control IDs.
  • the first control ID specifies the control ID to be created, the second control ID specifies the hidden HTML element that contains static properties for the optimized control, and the third control ID specifies the hidden HTML element that contains dynamic properties for the optimized control.
  • the hidden HTML elements encode the control properties using the approach described above in Fig. 23.
  • Fig. 25 illustrates a process for rendering a web page.
  • the process 2500 may be used, for example, to render a web page on a client computer system when the web page includes a web page portion that has been optimized using the techniques discussed herein. Any individual step, or the even the entire process, may be performed as part of a Javascript or other programming language routine.
  • the process 2500 begins at step 2502 with receiving a web page from a server, which may be local or remote. Receiving the web page from the server may include a sub-step of decompressing some or all of the web page content. For example, the web page may be received from the web server in a GZIP format that requires decompression.
  • the web page is parsed to identify a control ID.
  • the control ID may identify, for example, an HTML control that is declared and instantiated elsewhere in the web page.
  • the control ID may also identify an HTML or other kind of control that is to be instantiated. If the control does not exist and is to be instantiated, the step 2504 may optionally include the substep of instantiating a control with the identified control ID. Alternatively, the control may be instantiated later in the process when further details about the control's property or properties have been extracted from the web page.
  • a data array in the web page is parsed to identify an associated property to be set for the control.
  • the data array may be, for example, a string array of comma separated values, although other approaches and data structures for identifying a property are also contemplated.
  • the property may be identified by an index value, such as the index values discussed previously with respect to Fig. 8.
  • the data array in the web page is parsed to identify a property value for the property.
  • the property value may have been dynamically determined by the server during the preparation of the web page.
  • the property value may depend in part on information provided to the server when requesting the web page or on information associated with a user.
  • the dynamically determined property value may be received from the server in an uncompressed format, even though other parts of the web page are received in a compressed format.
  • step 2510 the control is modified to set the property to the property value.
  • the process 2500 may also continue by iterating over additional properties and property values in the data array or arrays.
  • the process 2500 may include processing two separate data arrays like those illustrated in Fig. 24.
  • This disclosure is described in the context of requesting and serving web pages over a network as part of a Microsoft ASP.NET web application. But those of skill in the art will recognize that the present disclosure may be used in other contexts.
  • the technology may be used within a single computer without the requirement of a network.
  • the disclosed techniques may be applied to documents other than web pages, such as interpreted or compiled scripts or programs, XML documents, database records, or any other kind of document.
  • the disclosed techniques may be applied to applications using other frameworks, including but not limited to Java, IBM WebSphere, and Adobe ColdFusion.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

A system and method of optimizing and rendering web pages. In one aspect, a server-side executable associated with an original web application code is identified. The original web application code is modified to use substitute instructions providing functionality similar to the original code. In another form, the method can include requesting a resource including a user interface control declaration and a data array containing properties for the user interface control. The data array is parsed to produce a first property value, and a property of the user interface control is modified to correspond to the first property value. The method can include generating a source code document including a test instruction statement that accesses an element of the control. The source code is then compiled, and one or more matched instructions in the compiled document are identified that correspond to the test instruction statement.

Description

SYSTEM AND METHOD FOR WEB APPLICATION OPTIMIZATION
BACKGROUND
[0001] The World Wide Web provides a convenient platform for sharing information. Among the many services offered through web sites are banking, shopping, and e-mail. In order to provide better services, many companies now provide customized web pages to each visitor. The customizations include examples such as providing a weather report based on a visitor's location, selecting targeted advertisements, and providing access to a visitor's account with the web site. Because each web page sent to a visitor is customized, the web server hosting the web site must create each customized page on demand, as it is requested by a visitor. Thus, providing customized web pages can put a strain on the processing resources of the web server. The increasing popularity of web pages also increases the traffic load on network resources that send and receive web pages.
SUMMARY
[0002] In one embodiment, a method includes selecting an original web page source code that includes instructions that when executed or interpreted by one or more computers produce a visual output; identifying a server-side executable associated with the original web page source code; identifying a control object used by the server-side executable; analyzing the server-side executable to evaluate how the server-side executable uses the control object; determining whether a substitute object, which provides functionality similar to that of the control object, provides all of the functionality of the control object that is used by the server- side executable; and modifying the original web page source code to use the substitute object instead of the control object, thereby producing a modified web page source code.
[0003] In another embodiment, a method includes analyzing a server- side program associated with a web page; determining automatically whether at least a portion of the server-side program produces, upon execution by a server, a static result; and if the determining step produces a positive result, then automatically modifying the at least a portion of the server- side program to incorporate the static result.
[0004] In another embodiment, a method includes analyzing an application that includes a server-side data validation control; determining whether the data validation control requires access to data that is unavailable to a client; and if the data validation control does not require access to data that is unavailable to a client, then incorporating a client-side data validation program into the application. [0005] In a further embodiment, an apparatus includes a computer-readable physical medium containing instructions that when executed cause a computer to select an original web page source code that includes instructions that when executed or interpreted by one or more computers produce a visual output; identify a server-side executable associated with the original web page source code; identify a control object used by the server-side executable; analyze the server-side executable to evaluate how the server-side executable uses the control object; determine whether a substitute object, which provides functionality similar to that of the control object, provides all of the functionality of the control object that is used by the server-side executable; and modify the original web page source code to use the substitute object instead of the control object.
[0006] In another embodiment, a method includes requesting a resource and receiving a response including a user interface control declaration and a data array containing properties for the user interface control. The data array is parsed to produce a first property value, and a property of the user interface control is modified to correspond to the first property value.
[0007] In still another embodiment, a method includes requesting a resource and receiving a response including a data element that includes a set of properties for a user interface control. The data element is parsed to produce a property value, and a user interface control is instantiated having a property that corresponds to the property value.
[0008] In an additional embodiment, a method includes identifying a control and generating a source code document including a test instruction statement that accesses an element of the control. The source code document is compiled to a compiled document. One or more matched instructions in the compiled document are identified as corresponding to the test instruction statement. The method then includes forming a pattern using the one or more matched instructions.
[0009] In another embodiment, a method includes identifying a first instruction and determining a first stack count at the first instruction. Then a second instruction is identified, and a second stack count at the second instruction is determined. The method continues with comparing the first stack count to the second stack count. If the first stack count is equal in value to the second stack count, a portion of code is identified beginning with the first instruction and ending with the second instruction as an instruction set. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The present disclosure is best understood from the following detailed description when read with the accompanying figures. It is emphasized that, in accordance with the standard practice in the industry, various features are not drawn to scale. In fact, the dimensions of the various features may be arbitrarily increased or reduced for clarity of discussion. Furthermore, all features may not be shown in all drawings for simplicity.
[0011] Fig. 1 illustrates a system for implementing web application optimization.
[0012] Fig. 2 illustrates an exemplary system for delivering a service or a document to a user.
[0013] Fig. 3 illustrates an optimization technique for part of a network application that produces a static output.
[0014] Figs. 4 and 5 illustrate two examples of a menu structure.
[0015] Fig. 6 illustrates an optimization technique for part of a network application that produces a dynamic output.
[0016] Fig. 7 illustrates an example .NET control section and associated code behind page.
[0017] Fig. 8 illustrates an exemplary mapping for some of the properties of a textbox control.
[0018] Fig. 9 illustrates an object-oriented network application that produces information in a table format.
[0019] Fig. 10 illustrates an alternate framework for providing an object-oriented network application that displays information in a table format.
[0020] Fig. 11 illustrates exemplary code portions to further explain an alternate output format.
[0021] Fig. 12 illustrates an example approach to modifying a compiled CIL program.
[0022] Fig. 13 illustrates a system for building a database of instruction templates.
[0023] Fig. 14 illustrates an example of how pages can be optimized when they inherit attributes and content from a master page.
[0024] Fig. 15 illustrates a process for optimizing a web application.
[0025] Fig. 16 illustrates a process for analyzing usage of a control object that is part of an application.
[0026] Fig. 17 illustrates an alternate approach for optimizing an application.
[0027] Fig. 18 illustrates a database format for storing details about supported controls. [0028] Fig. 19 illustrates an example approach to modifying a compiled CIL program.
[0029] Fig. 20 illustrates a process for identifying a beginning and an end of an instruction set.
[0030] Fig. 21 illustrates a progression of optimizing an instruction.
[0031] Fig. 22 illustrates an application optimization system and process.
[0032] Fig. 23 illustrates an example of optimizing a control.
[0033] Fig. 24 illustrates another example of optimizing a control.
[0034] Fig. 25 illustrates a process for rendering a web page.
DETAILED DESCRIPTION
[0035] The present disclosure relates generally to the world wide web and a method of improving web pages and web-based applications. It is understood, however, that the following disclosure provides many different embodiments, or examples, for implementing different features of the invention. Specific examples of components and arrangements are described below to simplify the present disclosure. These are, of course, merely examples and are not intended to be limiting.
[0036] Referring to Fig. 1, illustrated is system 100 for implementing web page optimization technology. The system includes a server computer 102 that provides access to a web application by producing and transmitting documents such as web pages. The server computer 102 may execute web server software that receives web page requests and responds to the requests by transmitting web pages. Example web server software includes Internet Information Server available from Microsoft and Apache available from the Apache Software Foundation. In responding to requests, the web server software selects a source file that is used to produce the requested web page. The source file may be a web page or web page template file. The source file may include executable or interpretable code, and it may refer to a separate file containing executable or interpretable code. In some embodiments, the code may access data stored in a database 108. The database 108 may be a SQL database, a file system, a graph database, or any other suitable database. Example database software includes Microsoft SQL Server, Oracle Database, and PostgreSQL. The database 108 may be located on the server computer 102, on another computer, or on group of computers. The web server software executes portions of the code and sends the produced web page to a client computer 104. [0037] The client computer 104 is coupled to the server computer 102 through a network 106. The client computer 104 executes web browser software that allows a user to access the web application, for example by requesting a web page from the server computer 102 and displaying the received web page to a user. The web browser software may also execute portions of the received web page. Examples of web browser software include Microsoft Internet Explorer, Apple Safari, Mozilla Firefox, and Google Chrome. The network 106 provides a communication pathway between the client computer 104 and the server computer 102.
[0038] The network 106 may include multiple wired or wireless connections, and zero or more additional computers may be present in the communication pathway between the client computer 104 and the server computer 102. The network 106 may include an electrical connection, an optical connection, a radio frequency connection, any other suitable communication connection, or a combination of multiple connections. The network 106 may include equipment such as switches, routers, hubs, multiplexers, demultiplexers, modulators, demodulators, and other suitable equipment. Alternately, the network 106 may be a virtual connection in the case of a loopback interface or virtualization software that allows the web browser software and the web server software to execute on the same computer hardware. The network 106 may also include additional clients and servers that are not illustrated. Examples of a network 106 include an internet such as the public Internet, an intranet such as a private corporate network.
[0039] In other embodiments, documents other than web pages may be requested and transmitted by the client 104 and server 102. For example, the documents may be XML documents, JSON documents, or a combination of different document types or formats.
[0040] The client 104, server 102, and database 108 may include one or more devices (not illustrated) for storing data to and retrieving data from a computer readable medium. The devices may be incorporated into one or more of the client 104, server 102, and database 108, or they may be attached either directly or indirectly, or they may be accessible over a network or data bus, or any combination of these. Example devices include registers, volatile memory such as random access memory, and nonvolatile memory such as a hard drive or optical drive. It is understood that storing data, which is generally binary in nature, to any of these computer readable media requires a transforming the state of a physical article. For example, storing a data bit to a register or to RAM generally involves charging or discharging a capacitor or setting the state of a flip-flop. Storing a data bit to magnetic media generally involves changing the magnetization of one or more grains within the magnetic medium. Storing a data bit to an optical disc generally involves scorching an organic dye or changing the phase of a metal alloy. Thus, storing a data bit to a computer readable medium involves updating a physical article so that it contains a representation of the stored data bit. Storing larger or more complex data is achieved by storing all of its constituent bits, whether sequentially or simultaneously or both. References to computer memory or other storage devices throughout are intended to cover any suitable computer readable medium.
[0041] Turning now to Fig. 2, illustrated is an exemplary system 200 for delivering a service or a document to a user. In many instances the user is an individual, but the user may also be a computer, service, process, controller, or any other type of user. The user uses a client program, illustrated as web browser 202, to initiate a request for information, such as a web page, XML response, or other document. An example of a request is an HTTP GET or POST message. The request is sent to a server program, illustrated as a web server 204, although other types of servers are also possible. In the specific example of Fig. 2, the web server 204 is a computer running Microsoft Internet Information Server (IIS), but other server or web server software are also contemplated. The web server passes the request to an application framework 206, illustrated as the object-oriented .NET Framework available from Microsoft although other application frameworks, including both object-oriented and non- object-oriented application frameworks, are also contemplated. Within the application framework 206, the request is identified as a request for a specific web page 208, illustrated in this example as a web page labeled "Products. aspx." It is understood that the request may also identify an object, procedure, or command for producing a web page or other suitable response to the request. As illustrated, the web page 208 is a server- side executable program that includes any number of sections of HTML 210 and server scripting 212. The sections of HTML 210 may optionally include additional non-HTML content, such as JavaScript code, comments, or other content. The server scripting 212 may identify or define objects, such as .NET controls, for producing a relevant portion of the response. The web page 208 as illustrated has an associated code-behind page 214, which may be shared with other web pages. It is understood that some web pages, or parts of web pages, may not have an associated code-behind page. The code-behind page 214 includes additional server-side executable code used in generated a response to the request from web browser 202. The code-behind page 214 may be written in any suitable language, including for example Visual Basic or C#, and may be compiled before or during execution. [0042] In response to the received request from the server 204, the application
framework 206 renders the web page 208 to produce a response, illustrated as an HTML output 216. In rendering the web page 208, the application framework 206 executes the instructions in the server scripting 212, which may cause the instantiation of one or more objects corresponding to the .NET controls in server scripting 212. The application framework 206 may also execute functions, procedures, and/or methods in the code-behind page 214, which may in turn cause the instantiation of additional objects. The instantiated objects may produce some or all of the contents of the HTML output 216. The HTML output 216 may be specifically tailored to the received request, for example, by incorporating information about the user, for example, the user' s name, location, or account. After the output 216 is produced, the application framework 206 provides the output 216 to the web server 204, which in turn sends the output 216 to the web browser 202 where it is produced for the user.
[0043] Fig. 3 illustrates an optimization technique 300 for part of a network application that produces a static output. Although the example of Fig. 3 is illustrated using the
ASP.NET platform available from Microsoft Corp., it is understood that other technology platforms could be used instead or in addition.
[0044] The network application includes an exemplary web page 302 named
Products. aspx. The web page 302 includes various sections of HTML code 304 and a .NET control section 306. The .NET control section 306 in this example does not have an associated code behind page. An example .NET control section with no associated code behind page is illustrated in a code segment 400 in Fig. 4, which illustrates an example of a menu structure designed using asp:Menu and asp:MenuItem objects.
[0045] Rendering the Products. aspx web page in the standard .NET framework causes the instantiation of all of the asp:Menu and asp:MenuItem objects defined in the code segment 400 of Fig. 4. But the HTML output of these objects is always the same. Thus, when a client requests the Products. aspx page, the processing required to produce a response is reduced by substituting a static HTML 308 output for the corresponding .NET control section 306. An example HTML output is illustrated in an HTML segment 500 in Fig. 5. The resulting web page 310, in this illustrative example, includes only HTML and has no .NET controls. Thus, rendering the web page 310 does not require the instantiation of any .NET objects. Those of skill in the art will recognize that in some instances, a .NET control section 306 may be replaced with a combination of HTML and client- side executable code, such as JavaScript. [0046] Fig. 6 illustrates an optimization technique 600 for part of a network application that produces a dynamic output. Although the example of Fig. 6 is illustrated using the ASP.NET platform available from Microsoft Corp., it is understood that other technology platforms could be used instead or in addition.
[0047] The network application includes an exemplary web page 602 named
Products. aspx. The web page 602 includes various sections of HTML code 604 and a .NET control section 606. The .NET control section 606 in this example has an associated code behind page 608 named Sitename.dll. An example .NET control section and associated code behind page is illustrated in code segments 700 and 702, respectively, in Fig. 7.
[0048] Rendering the Products. aspx web page in the standard .NET framework causes the instantiation of the object or objects defined in the .NET control section 606. Rendering may also cause the execution of the corresponding code behind, such as some or all of the code segment 700 of Fig. 7. The code behind code segment 700 accesses an object's functionality, properties, and events through various methods associated with the object. Execution of these methods at runtime requires first locating the appropriate class associated with the object, then locating the called method for that class or a superclass, and then finally executing the corresponding instructions of the method. In an application framework such as .NET, it is common for objects to be arranged in a hierarchy to exploit the advantages commonly associated with object-oriented programming, such as inheritance, encapsulation, and abstraction. Thus, even executing a relatively simple method such as a "getText" or "setText" method may require many instructions at runtime.
[0049] Accordingly, the optimization technique 600 includes substituting an optimized web page 612 for the web page 602. The optimized web page 612 includes an optimized control section 610 in place of the .NET control section 606 used in web page 602. The optimized control section 610 causes the instantiation of one or more optimized objects corresponding to the object or objects instantiated by the .NET control section 606. The optimized objects are of an optimized control class that represents all control properties as a simple array, such as a string array or a data array. This prevents unnecessary function calls, object accesses, and object hierarchy overhead. Alternately, the optimized control section 610 may use only HTML, JavaScript, or a combination of both to create a corresponding control object, thus eliminating the need to instantiate any corresponding objects during execution or rendering. Corresponding changes are made to the code behind code segment, as shown in Fig. 7. Code segment 702, corresponding to the optimized code behind code segment 614, stores and accesses various control properties in a string array named ControlString. For example, the control's text may be stored as ControlString[l], the background color as ControlString [2], and the font style as ControlString[3].
[0050] Thus, executing the OnChangeEvent() of code segment 702, as compared to executing the code segment 700, does not require finding or executing any methods associated with storing or retrieving control properties. Instead, the properties can be set and accessed through direct memory accesses to a string array.
[0051] Accessing a control's properties through a string or other array generally requires a mapping to ensure that the array elements are used consistently throughout an application. Fig. 8 illustrates an exemplary mapping 800 for some of the properties of a textbox control. As illustrated, the mapping is written as an XML document, but it is understood that the mapping may be in any format.
[0052] When the web page 612 is rendered in response to a client request, the optimized control section 610 may produce an HTML output similar to or the same as the .NET control section 606. Alternatively, the produced output to be in an alternate format that is more memory efficient. In particular, it is noted that an HTML output for an input text field includes various delimiters such as <input> and </input> tags, thus adding at a minimum fifteen additional characters of output for every input text field in the output. Additional delimeters may also be part of an HTML output. Thus, it is preferred for the optimized control section 610 to produce a more compact output format that includes all of the necessary contents without unnecessary delimiter characters. An example of such a format is explained more fully below.
[0053] The output may additionally include instructions executable by a client to reformat the alternate format output to an HTML format. The client- side executable instructions may be a JavaScript routine. Optionally, the output may include a reference to such instructions, such as a JavaScript function call, while the detailed instructions themselves are accessed from another location, such as a separate JavaScript file. After the output is returned to the client, the JavaScript routine is executed by the client and results in creating an HTML output using the provided data and properties. The HTML output can then be rendered by the client. Because the alternate format output does not include all of the mark-up tags associated with a fully-tagged HTML output, the size of the optimized output produced by optimized control section 610 may be less than a corresponding HTML output produced by the .NET control section 606. [0054] The techniques described above can be applied to substantially any control. The inventors have discovered, however, that certain controls (including, for example, controls that produce table-formatted output) can be optimized even more effectively with the following approach. Fig. 9 illustrates an object-oriented network application 900 that produces information in a table format. Although the example of Fig. 9 is illustrated using the ASP.NET platform available from Microsoft Corp., it is understood that other technology platforms, whether object-oriented or non-object-oriented, could be used instead or in addition.
[0055] The network application 900 instantiates a GridView object 902, which in the .NET framework is a control object for producing a tabular output. Those of skill in the art will recognize that other controls could also be used, and that the output may or may not be tabular. The control object may be any kind of control or object, and the control object may or may not produce a visible output. For example, the control object may be a property object, such as a color object. The GridView object 902 either instantiates or communicates with a DataSet control 904, which provides an interface to a data store 906, such as a file or database. The DataSet control 904, in turn, retrieves raw data 908 from the data store 906 and then provides the data to GridView object 902.
[0056] The GridView object 902 is customizable by a programmer through various properties 910, events 912, actions 914, and customizations 916. These elements allow the programmer to expand or tailor the functionality of the GridView object 902 to meet the requirements of the network application. During the execution of various events 912 and actions 914, additional objects may be instantiated. In particular, during the rendering of the GridView object 902 to produce an HTML output 918, a variety of additional HTML objects 920 may be instantiated. It is well understood that other objects (not illustrated) may also be instantiated during this processing, and that the output may be in another document format, including for example an XML document, a JSON document, or other type of document.
[0057] Fig. 10 illustrates an alternate framework 1000 for providing an object-oriented network application that displays information in a table format. Like Fig. 9, Fig. 10 is illustrated using the ASP.NET platform available from Microsoft Corp., but it is understood that other technology platforms, whether object-oriented or non-object-oriented, could be used instead or in addition.
[0058] The framework 1000 includes a OptimizedGridView object 1010. Like the GridView object 902 of Fig. 9, the OptimizedGridView object 1010 is a control object for producing tabular output. But as will be further illustrated below, the OptimizedGridView object 1010 produces a substantially similar or functionally equivalent output while consuming considerably fewer execution and memory resources. More specifically, the instantiation and rendering of an OptimizedGridView object 1010 causes the instantiation of fewer additional objects, or perhaps even does not directly cause the instantiation of any additional objects. In some embodiments, the OptimizedGridView object 1010 may provide a subset of the features available with the GridView object 902. For example, the
OptimizedGridView object 1010 may implement only the most commonly used features and capabilities of the GridView object 902. In addition, the OptimizedGridView object 1010 may provide features not available with the GridView object 902. Thus, the
OptimizedGridView object 1010 may provide a suitable replacement object for applications using the GridView object 902.
[0059] The OptimizedGridView object 1010 either instantiates or communicates with a DataSet control 1012, which provides an interface to a data store 1016, such as a file or database. The DataSet control 1012, in turn, retrieves raw data 1014 from the data store 1016 and then provides the data to OptimizedGridView object 1010. Thus, the
OptimizedGridView object 1010 is able to access all of the same data stores, and through substantially similar mechanisms, as the GridView object 902.
[0060] The OptimizedGridView object 1010 retrieves the data 1014 through the DataSet Control 1012 and formats the data for presentation as the output 1018. The
OptimizedGridView object 1010 preferably produces the output 1018 with a minimum of additional object instantiations. And while the OptimizedGridView object 1010 may produce an HTML output similar or the same as HTML output 918 produced by the GridView object 902, it is preferred for the produced output to be in an alternate format that is more memory efficient. In particular, it is noted that an HTML table output delimits each data element with <td> and </td> tags, thus adding at a minimum nine additional characters of output for every data element within the table. Additional delimeters, such as <tr> and <th> tags (and their corresponding closing tags), may also be part of an HTML table output. Thus, it is preferred for the OptimizedGridView object 1010 to produce a more compact output format that includes all of the necessary table contents without unnecessary delimiter characters. An example of such a format is explained more fully below.
[0061] The output 1018 may additionally include instructions executable by a client to reformat the output 1018 to an HTML format. The client- side executable instructions may be a JavaScript routine. Optionally, the output 1018 may include a reference to such instructions, such as a JavaScript function call, while the detailed instructions themselves are accessed from another location, such as a separate JavaScript file. After the output 1018 is returned to the client, the JavaScript routine can create an HTML table output using the provided table data and table properties. The HTML table can then be rendered by the client. Because the output 1018 does not include all of the mark-up tags associated with an HTML table, the size of the output 1018 is less than a corresponding HTML output 918 in Fig. 2.
[0062] It can be appreciated that the framework 1000 enjoys a number of advantages over the application 900. First, instantiation and use of the OptimizedGridView object 1010 requires fewer processing and memory resources when compared with the GridView 902. Because fewer objects are created and destroyed, there is a substantial savings in memory usage. And because the OptimizedGridView object 1010 avoids the use of many objects, those objects' initialization and clean-up routines do not have to be executed, resulting in a reduction in processing time. And since the output of OptimizedGridView object 1010 is smaller than the output of GridView 902, less communication bandwidth is needed to transmit the response back to the requester.
[0063] Thus, the framework 1000 can respond to requests using fewer memory, processing, and communication resources. Because of this increased efficiency, the framework 1000 can handle more requests than the application 900 using the same or equal hardware.
[0064] The example of Fig. 10 is not limited to handling only table-style controls such as a .NET GridView. The same similar approach can be taken with other .NET controls by replacing a standard .NET control with an optimized replacement that provides some or all of the same functionality but with higher efficiency. Examples of other .NET controls that can be replaced include validation controls, menu controls, list controls, and other controls.
Furthermore, it is understood that the example of Fig. 10 is also not limited to .NET controls, but could be adapted to any other application framework, whether object-oriented or non- object-oriented.
[0065] As noted above in the discussion of Figs. 6 and 10, the output of an optimized control may be in an alternate format. This alternate format may then be processed by client- side code, such as a JavaScript routine, to produce HTML output for rendering in a web browser. Fig. 11 illustrates exemplary code portions to further explain an alternate output format. In the illustrated example, an original Example. aspx page 1102 includes an ASP.NET TextBox control identified as "tl." An associated code-behind 1104 defines a function that, when executed, sets the background color of the tl TextBox to blue. It is understood that this is merely an example, and that more complex or sophisticated applications of the disclosed technology are also contemplated.
[0066] The Example. aspx page 1102 is replaced with an Optimized Example. aspx page 1106, and the associated code-behind 1104 is replaced with an optimized code-behind 1108. The Optimized Example. aspx page 1106 defines an HTML text input field having the same identifier as the ASP.NET TextBox control, "tl." The Optimized Example. aspx page 1106 also includes a call to a JavaScript function, buildTextbox(), that will initiate the setting of certain settings for the tl text input control when it is later produced by the receiving client. And an ASP.NET server-side script section is added to the Optimized Example. aspx page 1106 with a call to a RenderControlStrings() procedure.
[0067] Corresponding changes are made to the optimized code-behind 1108. The instructions contained in optimized code-behind 1108 is illustrated as being written using C# for the benefit of explanation, but it is understood that the optimized code-behind 1108 may be created as a compiled library using the Common Intermediate Language (CIL) as more fully explained below. A global string array variable, control_textl, and a global integer variable, control_textl_n, are defined. These two variables are used to store values assigned to attributes of the tl text input during the server-side rendering of the Optimized
Example. aspx page 1106. For example, the statement in the code-behind 1104 that sets the background color to blue is changed into a sequence of statements that will cause the equivalent output. Specifically, the 0th index position of the control_textl string array is used to store a sequence of property identifiers corresponding to control attributes. As illustrated in Fig. 8, the attribute for background color may be assigned the property identifier 2. Next, the other index positions of the control_textl string array are used to store the assigned values. Thus, in the first position, the RGB value corresponding to the color blue, #0000ff, is stored. Then, the control_textl_n counter is updated so that a next attribute, if any, can be stored.
[0068] The optimized code-behind 1108 also provides a definition of the
RenderControlStrings() procedure called by the Optimized Example. aspx page 1106.
Specifically, the RenderControlStrings() procedure injects JavaScript variable definitions for the control_textl variable used by the buildTextbox() function. An example of the output is shown as an Optimized Example. aspx page after server-side execution 1110. There, the server-side script has been replaced by a JavaScript code portion that defines the control_textl variable as a string array with two strings.
[0069] Example JavaScript Build Function 1112 illustrates how the control_textl string array may be interpreted to assign the desired attributes to a control, in this example a text input control. The string array's 0th value is divided into its comma-delimited constituent identifiers. Then, for each of the constituent identifiers, the property associated with the identifier is set to the value of the associated string array index value. Thus, in the illustrated example, the first identifier in the control_textl string array is 2, which corresponds to the background color attribute. The value of the corresponding control_textl string array index position (in this case, index position 1, or "#0000ff ') is thus assigned to that attribute. In this way, the tl text input has its background color properly set to the color blue.
[0070] The example of Fig. 11 is understood to be merely one example of how one attribute on one type of control can be optimized. The technique can be applied to substantially any attribute and any control, and furthermore various functions and procedures used in the optimization can be reused across multiple controls.
[0071] As noted above with reference to Figs. 6, 7, and 11, substituting an optimized control for a .NET control may require modifying instructions in an associated code behind. These changes could be accomplished by modifying the original code behind source code, but doing so requires access to the original code behind source code. In addition, the changes made to the code behind source code would generally depend on the programming language used by the code behind. Those of skill in the art will recognize that the changes needed for a Visual Basic code behind are different from those needed for a C# code behind.
[0072] An alternate approach is to make the necessary changes directly to a compiled dynamic link library (DLL) produced by the .NET compiler. The DLL includes instructions in a compiled format known as Common Intermediate Language (CIL) or Microsoft
Intermediate Language (MSIL). The DLL instructions can be decompiled and modified using, for example, tools such as .NET Reflections and Mono Cecil. Suitable alternate tools can be employed when working with frameworks other than .NET.
[0073] Fig. 12 illustrates an example approach to modifying a compiled CIL program. Original C# source code 1202 includes a statement 1204 setting the background color of a Label control to red. After being compiled by the .NET compiler, the statement 1204 results in the instructions 1206. The instructions 1206 load the specific object instance of the Label, determine a value associated with the color red, and then assign that value to the object instance's BackColor property.
[0074] In accordance with the techniques of the present disclosure, the instructions 1206 can be rewritten as the optimized instructions 1208. The optimized instructions 1208 may, for example, correspond to one of the replaced lines of code in the optimized code behind 702 of Fig. 7.
[0075] Fig. 19 illustrates an example approach to modifying a compiled CIL program. The example of Fig. 19 builds on the previous disclosure of Fig. 12. The compiled instructions 1206 are matched against a pattern 1902. The pattern 1902, which may be stored in the database format described in Fig. 18, represents an instruction set that includes a first block 1904 and a second block 1906, although more or fewer blocks are also contemplated. The number of blocks may depend on the specific control property, method, or event being invoked or referenced by the instructions 1206.
[0076] The first block 1902 includes a wild card portion 1908 that corresponds to a location in the instructions 1206 where a variable name occurs. Since variable names are assigned by the programmer, they cannot be predicted in advance and the optimization process must take into account that a variable name will change from one application to another, or that multiple variables with different names may be used in a single application. The first block 1902 also includes an object type portion 1910. The second block 1906 includes a base class type portion 1912, which may be the same as or different than the object type portion 1910. The second block 1906 also includes a function signature portion 1914 that identifies a method or function of the base class.
[0077] Between the first block 1904 and the second block 1906 are a number of lines, n, that are variable depending on the complexity of the supporting code. The n lines may also include other instruction sets. Thus, instructions sets may be nested inside other instruction sets. Because instruction sets may be nested, it is not always apparent where an instruction set begins or ends.
[0078] Fig. 20 illustrates a process for identifying a beginning and an end of an instruction set. The process implements a stack trace algorithm that evaluates the stack count value by determining how each instruction affects the stack count. IL instructions can either add items to the stack, pop items from the stack, or evaluate items on the stack without affecting the stack count. In step 2002, the first block of an instruction set is identified, for example, by a "ldarg.0" instruction followed by an object type and ID. In the example of Fig. 19, this corresponds to an object type of System.Web.UI.WebControls. Label with the name Controll. Next in step 2004, an initial stack count is determined. In the example of Fig. 19, the stack count begins with 2, but the beginning stack count can be any value depending on its location in the IL code. Then in step 2006, the stack increment of the next instruction is determined. In the example of Fig. 19, the next instruction is the "ldfld" instruction with a stack increment of +1 because the instruction adds one item to the stack. Although described as a stack increment, it is understood that the stack increment value may be positive, negative, or zero. In step 2008, the stack increment is added to the stack count, resulting in a stack count of 3 in the example. Then in step 2010, the current stack count (3) is compared to the initial stack count (2). If the current stack count equals the initial stack count, processing continues to step 2012, where the last instruction is identified as the end of the instruction set. If in step 2010 the current stack count does not equal the initial stack count, then processing loops back to step 2006.
[0079] As shown in the example of Fig. 19, the "callvirt" instruction has a stack increment of -2 because it pops two items off the stack. This results in the current stack count equaling the initial stack count and indicates that the "callvirt" instruction is the end of the instruction set that begins with the "ldarg.0" and "ldfld" statements.
[0080] After an instruction set is identified using the process of Fig. 20, the object type, base class type, and function signature can be identified as shown in Fig. 19. These values and the instruction set are used to query the pattern database for a matching result. The .NET Reflection tool may be used to query the pattern database, which may be implement in pure IL with the patterns created as IL blocks. An example IL block pattern is shown in Fig. 18 as pattern 1810. The pattern 1810 corresponds to the base class type and function signature of the IL instructions in the example of Fig. 19. Thus, the optimization process retrieves the pattern 1810 from the pattern database and extracts the instructions therein to replace the IL instructions of Fig. 19. In the specific example of pattern 1810, there is an object type 1812 ("System_Web_UIWebControls_Label"), function signature 1814 ("setText()"), and optimization command and associated block descriptions 1816. As previously noted, each pattern may have more or fewer blocks. The optimization command or commands may be to ignore, verify, replace, or type change the original instructions. In most instances, the optimization command will be to replace the original IL instructions with optimized counterparts. The optimized counterparts may be optimized relative to the original IL instructions in a variety of ways, including, for example, that the optimized counterparts execute faster, require less memory, access fewer resources, or produce output that requires less time to transmit over a network.
[0081] Fig. 21 illustrates a progression of optimizing an instruction. The initial compiled IL code 2102 is matched to a pattern 2104. The pattern 2104 is evaluated to provide replacement optimized instructions 2106. For example, the replacement instructions 2106 are substantially equivalent to the C# statement, "m_EkkoTxt[l] = 'Please enter a value' ;".
[0082] From the example explained in detail above, it can be appreciated that instructions for setting or getting substantially any property for substantially any .NET control can be readily replaced with optimized instructions that access the relevant properties using the control string techniques of the present disclosure. Given that many .NET controls have few or no methods or events other than those for getting and setting properties, these .NET controls can be replaced with corresponding optimized controls that provide equivalent or the same functionality. To do so, it is appreciated that one approach is to build a database of generic templates of instructions and optimized templates of instructions, as generally discussed above with respect to Fig. 12. The library preferably should include templates corresponding to each supported property or attribute of each supported control object class.
[0083] Fig. 13 illustrates a system 1300 for building a database of instruction templates. The system 1300 includes a control 1302 that is input to a pattern creation tool 1304. The pattern creation tool 1304 introspects the control 1302 to determine its properties, functions, and events. The pattern creation tool and compiler 1304 then generates and compiles example source code to activate some or all of these properties, functions, and events. The generated source code may be, for example, C# source code or Visual Basic source code. The source code is then compiled to produce a generic form of IL that is analyzed by an IL pattern analysis tool 1306 to identify one or more IL instructions for that correspond to each property, function, or event. The one or more IL instructions are used to generate an IL statement pattern 1308 for each corresponding property, function, or event. The IL statement pattern may include a portion that matches against a wildcard, for example, for matching against a variable name. For each identified pattern, a replacement pattern 1310 is also provided. These search patterns and replacement patterns are then stored in a database 1312. The database may be an IL dynamic link library (DLL), thus allowing .NET Reflection to be used to read and to search the patterns. Since the properties, functions, and events associated with a control may change with each version of the .NET framework, separate databases 1312 may be created for each supported version of the .NET framework. [0084] The system 1300 may operate automatically, allowing a large number of controls to be quickly analyzed. The system 1300 may also operate semi-automatically, such that a user guides and oversees the system's operation but some aspects remain automatic.
[0085] To handle some events, such as an OnChange event triggered by a user changing the value of a control object, the initial values of optimized control objects may be stored in a hidden field inserted into a rendered web page. When a client sends a subsequent request, such as HTTP POST message, the value of the hidden field will be included in the POST message. Thus, during processing of the POST message, the initial values (retrieved from the hidden field) may be compared to the then-current values (also provided in the POST message) to determine if a field value has changed. If so, the associated OnChange event is triggered. Other events can be handled in a similar fashion.
[0086] Fig. 18 illustrates a database format 1800 for storing details about supported controls. The database format 1800 may be used, for example, to organize data stored in databases 1312. The database format 1800 includes a type value 1802 to indicate a control, which may be a specific control or a class of controls. For a type value 1802, the database format 1800 includes properties 1804, methods 1806, and events 1808. Although described using the plural sense, it is not required that a type value 1802 have multiple properties 1804, methods 1806, and events 1808. Thus, it is understood that a type value 1802 may alternately have zero or more properties 1804, methods 1806, and events 1808. For each property 1804, the database format 1800 stores a pattern that matches an IL statement pattern generated by code accessing the corresponding property of the type 1802. The methods 1806 and events 1808 are similarly organized. The database format is organized to allow multiple records to be efficiently stored and searched, thus supporting the code optimization processes described herein.
[0087] The optimization technology of the present disclosure can be readily integrated with the optimization technology described in the applicants' co-pending U.S. App. App. 12/477416, "Web Page Optimization," filed June 3, 2009, the contents of which are hereby incorporated by reference for all purposes. Thus, after replacing ASP.NET controls with HTML equivalent controls, as discussed generally above with respect to Fig. 12, the replacement HTML equivalent controls are defined by server-side static code that can optionally be compressed.
[0088] It is noted that ASP.NET applications can use a concept known as a Master Page that defines attributes and content that are inherited by one or more other pages. Fig. 14 shows an example of how pages can be optimized when they inherit attributes and content from a master page. An ASP.NET master page 1402 includes a dynamic portion 1404 and a static portion 1406. Within the dynamic portion 1404 there is a content placeholder that can contain, for example, either content control A or a content control B. Illustrated is the content control A 1408, which is also divided into a dynamic portion 1410 and a static portion 1412. The dynamic portion 1410 begins with an identifier 1414, and the static portion 1412 ends with a corresponding identifier 1416. As illustrated, the identifiers 1414 and 1416 each have a length of 5 bytes, but it is understood that the identifiers may be longer or shorter, and they may be of unequal length. Part or all of an identifier may identify a file or other data store, either directly or indirectly, that includes additional information for processing the content control. A separate data store, not shown, may store additional information, such as the location of escape sequences or characters that must be replaced before the content is provided to a requester. As illustrated, the identifiers 1414 and 1416 each begin with the control byte value OxOF, which is treated as a reserved byte value that indicates the beginning of a header or footer identifier. The next byte has a value of either 0 or 1. The value 0 indicates that the identifier is a header identifier marking the beginning of a portion, and the value 1 indicates that the identifier is a footer identifier marking the end of a portion. The next three bytes or characters represent an alphanumeric identifier, which in the illustrated example is 31 A. It is understood that identifiers may be structured differently and may have or use any suitable format. The dynamic portion 1410 also includes an empty header 1418, which may be subsequently populated as a GZIP, zlib, or other compression block header.
[0089] Fig. 15 illustrates a process 1500 for optimizing a web application. Although the process 1500 is illustrated and described herein with respect to an ASP.NET web application, it is understood that the web application may use any suitable framework. The process 1500 begins in step 1502 with identifying a target web application. The target web application may be an entire web site, or just a portion thereof, for example, a single web page.
Continuing in step 1504, an original ASPx page is identified. Then in step 1506, the code- behind associated with the ASPx page, if any, is identified. In step 1508, the compiled code- behind code is decompiled and introspected along with the ASPx page. Because all .NET code compiles to a Common Intermediate Language (CIL) format, processing the compiled code-behind code allows the process 1500 to operate independently of whatever language the code-behind was originally written in. For example, it does not matter for the process 1500 whether the code-behind was written using Visual Basic or C#. The decompilation of step 1508 may be accomplished using, for example, the Reflections toolset that is provided as part of ASP.NET or the Cecil library available as part of the open source Mono project. As an alternative to decompilation, the code-behind may be analyzed in its original source code format. As yet another alternative, a custom execution environment can be created for executing the code-behind in a controlled environment that records the actions caused by executing the code-behind.
[0090] Then in step 1510, an analysis is made of the objects, methods, properties, and events are used in the code-behind. This analysis may be directed to determining if any ASP.NET server controls are modified or used in the code-behind. Examples of modification or use include if the contents of an object or its properties are changed, if a control triggers a postback event, or if an object is passed as a parameter in a method call. As a specific example, where the ASPx page uses a GridView control, the introspection may include determining how the methods, properties, and events of that GridView control are used.
[0091] In step 1512, a decision is made based on the analysis from step 1510 as to whether the ASPx page and associated code-behind use only the subset of features supported by an optimized replacement control. If only supported features are used, then in step 1514 the ASPx page is rewritten to use the optimized replacement control instead of the original control. If unsupported features are used, then processing continues to step 1516.
[0092] In step 1516, a determination is made whether there are additional controls to be analyzed. If so, then processing returns to step 1510 to handle the next control. If there are no more controls, then processing continues to step 1518.
[0093] In step 1518, a determination is made whether there are additional ASPx pages to be processed. If so, then the next page is identified and processing continues to step 1510 to process it. If there are no more pages, then processing continues to step 1520. In step 1520, the changes made in the process 1500 to the web application are saved. As an alternative, the changes may be saved as they are made throughout the process 1500. The changes may be saved to a new location so that the original files associated with the web application are not disturbed. Finally in step 1522, the updated web application is deployed. The application may be deployed to a test or production environment.
[0094] Turning now to Fig. 16, illustrated is a process 1600 for analyzing usage of a control object that is part of an application. The process 1600 may be used, for example, as part of the process 1500. The process 1600 begins in step 1602 with identifying the control's properties that are assigned values by the application. Then in step 1604, the control's methods called by the application are identified. In step 1606, the control's events that cause the execution of application logic are identified. In summary, steps 1602-1606 identify substantially all of the ways that the application uses the control under analysis.
[0095] The process 1600 then continues with determining a functionally equivalent technique for creating each of the control's properties, methods, and events used by the application. In step 1608, it is determined whether a property, method, or event results in a static result. For example, the control may have a color property set to a fixed color and that produces an in-line CSS command or HTML tag property. The determination of step 1608 may be made for each property, method, and event separately, or they may be considered in groups or as a whole. For example, an entire asp:Menu structure and its constituent sub- objects may be evaluated together as a group. If in step 1608 it is determine that the result is static, then in step 1610 the static result can be used in place of the property, method, or event. The static result may be a portion of text, such as HTML, Javascript or other code. The static result may also be a visual styling command, such as a portion of CSS code.
[0096] If in step 1608 it is determined that the property, method, or event does not produce a static result, then in step 1612 it is determined whether a replacement optimized control provides a functionally equivalent property, method, or event. If so, then the functionally equivalent property, method, or event is used in step 1614. The replacement optimized control may include executable code that will execute on the server, on the client, or on an intermediary network node. For example, the replacement optimized control may be another object or group of objects or a Javascript routine or portion thereof.
[0097] Then in step 1616, it is determined whether there are any further properties, methods, or events to be analyzed. If so, then processing returns to step 1608 to handle the next property, method, or event. If not, then processing ends in step 1620 by using the replacement controls and/or static results.
[0098] If in step 1612 it is determined that a replacement optimized control does not provide a functionally equivalent property, method, or event, then the original control will not be optimized and the process ends in step 1618.
[0099] Turning now to Fig. 17, illustrated is another approach for optimizing an application. The process begins in step 1702 with monitoring the application for a request from a client. Then in step 1704, the process continues with capturing the information dynamically accessed by the application in response to the request. The information may be, for example, one or more records from a database associated with the application. Next in step 1706, the application's completed response to the request is captured. Steps 1702 to 1706 may optionally be repeated multiple times to produce multiple captured examples of access information and their associated completed responses.
[00100] In step 1708, the response and accessed information are analyzed to identify which parts of the response were formed using the dynamically accessed information, and conversely, which parts of the response were formed from substantially static data. Thus, this analysis step allows the substantially static portions of the response to be identified and separated from the complete response. Next in step 1710, a response template is produced. The response template incorporates the substantially static data along with placeholder identifiers that indicate where each item of dynamically access information was found in step 1708. The placeholder identifiers, either alone or in combination with a data map, indicate the relevant data source for each item of dynamically access information. For example, the placeholder identifier or an associated data map may indicate that a certain field is to contain a user's name as stored in a field on a table in the database.
[00101] Next in step 1712, a new request is received and responded to using the response template generated in step 1710. Because only the dynamically access information needs to be accessed and processed, and because the remainder of the response is known to be substantially static, the computation burden on a server responding to the new request is dramatically lower.
[00102] Fig. 22 illustrates an application optimization system and process. The system includes an optimization engine 2202 and associated pattern database 2204. Although illustrated as a single database, it is understood that the pattern database 2204 may include multiple databases. A target web application includes a web page 2206 and code-behind 2208, although the application may of course include many web pages and code-behinds. The optimization engine 2202 parses the web page 2206 to locate and subsequently identify any controls or objects used there. The optimization engine 2202 then loads instruction patterns from the pattern database 2204. Next the optimization engine 2202 searches for matching patterns in the code-behind 2208. Using information from the pattern database 2204, the optimization engine then replaces instructions in the code-behind 2208 to produce an optimized code-behind 2210. The optimization engine also replaces controls in the web page 2206 to produce an optimized web page 2212. [00103] Fig. 23 illustrates an example of optimizing a control. A web page portion 2302 includes a statement declaring a button with ID btnContinue, a text label of "Continue...", a width of 200 and a color blue. An associated code behind segment 2304 modifies the button's height to 30 and sets the font to Arial. An optimized web page portion 2306 includes a button declaration as a standard HTML control. The optimized web page portion 2306 also defines a hidden HTML element that contains values representing button properties that are set dynamically. Finally, the optimized web page portion 2306 includes a Javascript portion to be executed on the client side to call a buildButton() function that accepts as arguments two control IDs. The first control ID specifies the optimized control and the second control ID specifies the hidden HTML element that contains dynamic properties for the optimized control. The Javascript function may be specific to the particular control being optimized. Alternatively, the function may be common to multiple controls and may accept an additional parameter indicating the type of control to be built.
[00104] The hidden HTML element encodes dynamic properties using comma separated values. Other encoding approaches may also be used instead of or in addition to comma separation. The first value specifies the total number of dynamic properties, in the example case, there are 2. Since there are 2 dynamic properties, the next 2 values specify index values that identify the specific properties. In the example case, the value 4 indicates that the dynamic property is the height, and the value 30 indicates that the dynamic property is the font. Next, the values of the properties are provided. In the example case, the height is set to the value 30 and the font is set to the value arial.
[00105] Fig. 24 illustrates another example of optimizing a control. The example begins with the same web page portion 2302 and associated code behind segment 2304 as in the example of Fig. 23. An optimized web page portion 2406 includes two hidden HTML elements, one for statically defined properties and a second for properties that are set dynamically. The optimized web page portion 2406 also includes a Javascript portion to be executed on the client side to call a buildButton() function that accepts as arguments three control IDs. The first control ID specifies the control ID to be created, the second control ID specifies the hidden HTML element that contains static properties for the optimized control, and the third control ID specifies the hidden HTML element that contains dynamic properties for the optimized control. The hidden HTML elements encode the control properties using the approach described above in Fig. 23. [00106] It is particularly noted that a substantial portion of the optimized web page portions 2306 and 2406 is static. Only the dynamic values assigned during execution of the code-behind are non-static. Thus, the remaining static portions can be further compressed and optimized using the optimization technology described in the applicants' co-pending U.S. App. No. 12/477416.
[00107] Fig. 25 illustrates a process for rendering a web page. The process 2500 may be used, for example, to render a web page on a client computer system when the web page includes a web page portion that has been optimized using the techniques discussed herein. Any individual step, or the even the entire process, may be performed as part of a Javascript or other programming language routine. The process 2500 begins at step 2502 with receiving a web page from a server, which may be local or remote. Receiving the web page from the server may include a sub-step of decompressing some or all of the web page content. For example, the web page may be received from the web server in a GZIP format that requires decompression. Next in step 2504, the web page is parsed to identify a control ID. The control ID may identify, for example, an HTML control that is declared and instantiated elsewhere in the web page. The control ID may also identify an HTML or other kind of control that is to be instantiated. If the control does not exist and is to be instantiated, the step 2504 may optionally include the substep of instantiating a control with the identified control ID. Alternatively, the control may be instantiated later in the process when further details about the control's property or properties have been extracted from the web page. Then in step 2506, a data array in the web page is parsed to identify an associated property to be set for the control. The data array may be, for example, a string array of comma separated values, although other approaches and data structures for identifying a property are also contemplated. The property may be identified by an index value, such as the index values discussed previously with respect to Fig. 8. Next in step 2508, the data array in the web page is parsed to identify a property value for the property. Although it is contemplated that the data array of step 2508 is the same data array of step 2506, this is not necessarily so. The property value may have been dynamically determined by the server during the preparation of the web page. For example, the property value may depend in part on information provided to the server when requesting the web page or on information associated with a user. As described in applicants' co-pending U.S. App. No. 12/477416, the dynamically determined property value may be received from the server in an uncompressed format, even though other parts of the web page are received in a compressed format. Finally in step 2510, the control is modified to set the property to the property value. The process 2500 may also continue by iterating over additional properties and property values in the data array or arrays. For example, the process 2500 may include processing two separate data arrays like those illustrated in Fig. 24.
[00108] This disclosure is described in the context of requesting and serving web pages over a network as part of a Microsoft ASP.NET web application. But those of skill in the art will recognize that the present disclosure may be used in other contexts. For example, the technology may be used within a single computer without the requirement of a network. As another example, the disclosed techniques may be applied to documents other than web pages, such as interpreted or compiled scripts or programs, XML documents, database records, or any other kind of document. As a further example, the disclosed techniques may be applied to applications using other frameworks, including but not limited to Java, IBM WebSphere, and Adobe ColdFusion.
[00109] The present disclosure has been described relative to a preferred embodiment. Improvements or modifications that become apparent to persons of ordinary skill in the art only after reading this disclosure are deemed within the spirit and scope of the application. It is understood that several modifications, changes and substitutions are intended in the foregoing disclosure and in some instances some features of the invention will be employed without a corresponding use of other features. Accordingly, it is appropriate that the appended claims be construed broadly and in a manner consistent with the scope of the invention.

Claims

WHAT IS CLAIMED IS:
1. A computerized method comprising:
selecting web application code that includes instructions that when executed or interpreted by one or more computers produce a visual output;
identifying a server-side executable associated with the web application code; identifying an object used by the server-side executable;
analyzing the server-side executable to evaluate how the server-side executable uses the object;
determining whether executable code provides functionality of the object that is used by the server-side executable; and
modifying the web application code to use the executable code instead of the object, thereby producing a modified web application code.
2. The method of claim 1 wherein the identifying an object, analyzing, and determining steps are accomplished without human intervention.
3. The method of claim 1 wherein the functionality comprises at least one of properties, methods, and events.
4. The method of claim 1 wherein the web application code comprises an ASP.NET web page.
5. The method of claim 1 wherein the server- side executable is selected from the group comprising a ASP.NET code-behind and a Java program.
6. The method of claim 1 wherein the executable code is part of a library of substitute executable instructions.
7. The method of claim 1 wherein the executable code generates HTML and JavaScript instructions.
8. The method of claim 7 wherein the executable code generates a data structure containing control property values.
9. The method of claim 1 wherein server-side execution of the modified web application code causes the instantiation of fewer objects than server-side execution of the original web application code.
10. The method of claim 1 wherein the modifying step comprises replacing one or more server-side executable instructions with one or more client-side executable instructions.
11. The method of claim 1 further comprising compressing the modified web application code.
12. A computerized method comprising:
analyzing a server-side program associated with a web page; determining whether at least a portion of the server-side program produces, upon execution by a server, a static result; and
if the determining step produces a positive result, then modifying the at least a portion of the server-side program to incorporate the static result.
13. A computerized method comprising:
identifying instructions executable by a server that, when executed, assign a value to an object property;
identifying a substitute value that corresponds to the value;
assigning an index value to the object property;
storing the substitute value and the index value;
creating one or more executable instructions that, when executed, will assign the substitute value to a substitute object property.
14. An apparatus comprising:
a computer-readable physical medium containing instructions executable on a computer and that when executed cause the computer to:
select a web application code that includes instructions that when executed or interpreted by one or more computers produce a visual output;
identify a server-side executable associated with the web application code; identify an object used by the server-side executable;
analyze the server-side executable to evaluate how the server-side executable uses the object;
determine whether executable code provides functionality of the object that is used by the server-side executable; and
modify the web application code to use the executable code instead of the object, thereby producing a modified web application code.
15. A computerized method comprising :
requesting a resource;
receiving a response including a user interface control declaration and a data array containing properties for the user interface control;
parsing a first property value in the data array;
modifying a property of the user interface control corresponding to the first property value.
16. The method of claim 15 further comprising iterating over the data array.
17. The method of claim 15 further comprising parsing a first property index in the data array, wherein the first property index is associated with the first property value.
18. The method of claim 15 further comprising decompressing the response.
19. The method of claim 15 wherein the user interface control is an HTML control.
20. The method of claim 15 wherein the modifying step comprises executing a Javascript function.
21. The method of claim 15 wherein the data array comprises properties determined dynamically depending at least in part on information provided in the requesting step,
22. The method of claim 15 wherein the data array comprises properties determined dynamically depending at least in part on information associated with a user.
23. The method of claim 22 wherein a portion of the response is compressed but the properties determined dynamically are not compressed.
24. A computerized method comprising:
identifying a control;
generating a source code document including a test instruction statement that accesses an element of the control;
compiling the source code document to a compiled document; identifying one or more matched instructions in the compiled document that correspond to the test instruction statement; and
forming a pattern using the one or more matched instructions.
25. The method of claim 1 wherein the compiling comprises compiling to an intermediate language.
26. A computerized method comprising:
identifying a first instruction;
determining a first stack count at the first instruction;
identifying a second instruction;
determining a second stack count at the second instruction;
comparing the first stack count to the second stack count; and if the first stack count is equal in value to the second stack count, identifying a portion of code beginning with the first instruction and ending with the second instruction as an instruction set.
27. The method of claim 28 further comprising analyzing the instruction set to identify an object class and a function signature.
28. The method of claim 29 further comprising searching a pattern database using the object class and the function signature.
PCT/US2011/060254 2010-11-11 2011-11-10 System and method for web applicaiton optimization WO2012064995A2 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
US12/944,352 US8667386B2 (en) 2010-11-11 2010-11-11 Network client optimization
US12/944,340 2010-11-11
US12/944,352 2010-11-11
US12/944,340 US20120124462A1 (en) 2010-11-11 2010-11-11 Web Application Optimization
US12/944,365 US20120124555A1 (en) 2010-11-11 2010-11-11 Optimization of Compiled Control Objects
US12/944,365 2010-11-11

Publications (2)

Publication Number Publication Date
WO2012064995A2 true WO2012064995A2 (en) 2012-05-18
WO2012064995A3 WO2012064995A3 (en) 2012-07-26

Family

ID=46051569

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2011/060254 WO2012064995A2 (en) 2010-11-11 2011-11-10 System and method for web applicaiton optimization

Country Status (1)

Country Link
WO (1) WO2012064995A2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070300244A1 (en) * 2000-02-04 2007-12-27 Robert Kieffer Optimized delivery of web application code
US20080172662A1 (en) * 2007-01-12 2008-07-17 Microsoft Corporation Code Optimization Across Interfaces
US20090024982A1 (en) * 2007-07-20 2009-01-22 International Business Machines Corporation Apparatus, system, and method for archiving small objects to improve the loading time of a web page
US20090055811A1 (en) * 2004-03-05 2009-02-26 International Business Machines Corporation Reducing the run-time cost ofinvoking a server page

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070300244A1 (en) * 2000-02-04 2007-12-27 Robert Kieffer Optimized delivery of web application code
US20090055811A1 (en) * 2004-03-05 2009-02-26 International Business Machines Corporation Reducing the run-time cost ofinvoking a server page
US20080172662A1 (en) * 2007-01-12 2008-07-17 Microsoft Corporation Code Optimization Across Interfaces
US20090024982A1 (en) * 2007-07-20 2009-01-22 International Business Machines Corporation Apparatus, system, and method for archiving small objects to improve the loading time of a web page

Also Published As

Publication number Publication date
WO2012064995A3 (en) 2012-07-26

Similar Documents

Publication Publication Date Title
US10824691B2 (en) Page rendering method, device, and data storage medium
US12086535B2 (en) Systems and methods of a script generation engine
CN110825362B (en) Low-code application software development system and method
US10776567B2 (en) Method for compiling page data, method, device and storage medium for page rendering
CN111026470B (en) System and method for verification and conversion of input data
US20120124462A1 (en) Web Application Optimization
US8700988B2 (en) Selectively interpreted portal page layout template
US9015657B2 (en) Systems and methods for developing and delivering platform adaptive web and native application content
KR100750834B1 (en) A method of data call stack tracing in data monitoring of JAVA byte code and a device for storing the method in compter program type
US7529763B2 (en) System and method for providing dynamic client architecture in an application development environment
US20120124555A1 (en) Optimization of Compiled Control Objects
US9646103B2 (en) Client-side template engine and method for constructing a nested DOM module for a website
WO2011035944A1 (en) Managing application state information by means of a uniform resource identifier (uri)
CN112631591B (en) Method, apparatus, device and computer readable storage medium for table element linkage
US10114617B2 (en) Rapid visualization rendering package for statistical programming language
CN117112341A (en) Non-invasive quasi-real-time monitoring method and system based on ASM byte code instrumentation
US11281477B2 (en) Assigning computing resources to execution of evaluators for image animation
US8667386B2 (en) Network client optimization
CN107077484B (en) Generating a web browser view of an application
WO2012064995A2 (en) System and method for web applicaiton optimization
US20160012146A1 (en) Client Web Browser and Method for Constructing a Website DOM Module With Client-Side Functional Code
CN114254232A (en) Cloud product page generation method and device, computer equipment and storage medium
CN113608745B (en) Method for initializing user permission and storage medium
CN117149252A (en) Program package volume adjustment method and device, electronic equipment and readable storage medium
CN114090105A (en) System building method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11839118

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11839118

Country of ref document: EP

Kind code of ref document: A2