[CLOSED] About Performance in Ext.Net.

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] About Performance in Ext.Net.

    About Performance in Ext.Net.
    ------

    Hi there.

    I am having performance issues with a page created using Ext.Net.
    The page have several Ext.Net controls and ExtNetWindows. I changed the use of the ColumnLayout and now I am using HBoxLayout because I think is lighter.
    But the page delays a lot to load its structure (around 8-10 seconds).
    I doubt than the problem is bad sql performance, because the test I am doing is without load any data from the sql server (only load the page structure).
    I doubt than the problem is low PC performance, because the specs of the PC where I am running the page are:
    Win 7
    4 cores
    4gb ram
    Internet Explorer 8
    Visual Studio 2010 Ultimate

    With all the time the page delays, I think something I am doing wrong in the page structure (layouts, a bad approach, windows use, etc).
    I am includding the single code ready_to_run to help to reproduce my problem:

    I hope you can reproduce the 8-10 sec time load.
    Can you help me to find the real cause of the low performance or give a hint about implement another approach for this page?
    Thanks in advance.
    Attached Files
    Last edited by Daniil; Feb 03, 2012 at 4:49 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I changed the use of the ColumnLayout and now I am using HBoxLayout because I think is lighter.
    There is very minor difference.

    Regarding to improving the performance, please investigate:
    http://forums.ext.net/showthread.php?13726
    http://forums.ext.net/showthread.php?15699
  3. #3
    WAY too much stuff in one page. Create the windows when needed instead of creating them all on initial load of the page.
  4. #4
    Quote Originally Posted by jchau View Post
    WAY too much stuff in one page. Create the windows when needed instead of creating them all on initial load of the page.
    Hi there jchau, thanks for the comment, but...
    Do you mean creating dynamic controls in the page like here?
    page

    I find in the past than that approach increase a lot the page code complexity.
    Or if I misunderstood what you say, please can you give more info about
    Quote Originally Posted by jchau View Post
    Create the windows when needed
    BTW, thanks for the link, Daniil. I readed and applied the next changes:
    • DisableViewState="true" in the ResourceManager
    • moved all the sotres and windows to the Bin property


    The page has a 4 sec better performance. From 11 to 7/6 sec is a huge steap.
  5. #5
    Quote Originally Posted by egvt View Post
    Hi there jchau, thanks for the comment, but...
    Do you mean creating dynamic controls in the page like here?
    page

    I find in the past than that approach increase a lot the page code complexity.
    Or if I misunderstood what you say, please can you give more info about
    Yes, that's what I am referring to. We create content on the fly all the time. It actually makes our code cleaner and more modularized. Each window's logic is contained within itself.
  6. #6
    Quote Originally Posted by jchau View Post
    Yes, that's what I am referring to. We create content on the fly all the time. It actually makes our code cleaner and more modularized. Each window's logic is contained within itself.
    Hi again.

    I know the use of dinamic ext-net code thanks to this Vladimir's example:
    page

    But I feel more confident using native html-code than dynamic-html-code created in code-behind.

    So, is there a way to achieve the same goal (render a window only when we need) using another approach, lets say... with "user controls", window-ext-net-controls in several pages, or something like that?
    Or the only way to get a light page is generating layouts and controls in the code behind and adding them inside a ContentPlaceHolder?

    Thanks in advance.
  7. #7
    Below is the simple example how to render a Window from a user control.

    Example Page
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <%@ Register Src="~/TestUC.ascx" TagPrefix="uc" TagName="TestUC" %>
    
    <script runat="server">
        protected void ShowWindow(object sender, DirectEventArgs e)
        {
            TestUC uc = (TestUC)this.LoadControl("TestUC.ascx");
            this.Form.Controls.Add(uc);
    
            uc.RenderWindow();
        }
    </script>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Button runat="server" Text="Show a Window" OnDirectClick="ShowWindow" />
        </form>
    </body>
    </html>
    Example User Control
    <%@ Control Language="C#" ClassName="TestUC" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        public void RenderWindow()
        {
            this.Window1.Render();    
        }
    </script>
    
    <ext:Window ID="Window1" runat="server" Html="Hello from User Control!" />
    See also
    http://forums.ext.net/showthread.php?12450

    Please note that we strongly recommend to don't use IFrame since it worsens the application performance.

    NOTE: please see update http://forums.ext.net/showthread.php...ll=1#post73904
    Last edited by geoffrey.mcgill; Feb 03, 2012 at 5:48 PM.
  8. #8
    Thanks for the info and the links.
    I will apply your example in my app.
    Only one more thing:
    You reccomend do not use IFrame.
    But I see here recommend use to it. I am confused asbout that. Can you give more info about it?
    Thanks in advanced.
  9. #9
    @Geoffrey just listed the possible options, he didn't recommend it.
  10. #10
    Oh, I see.
    Thanks for clarify that.
    I think this thread can be mark as Closed.
    Thanks again.
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Performance
    By tlfdesarrollo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 28, 2012, 2:06 PM
  2. [CLOSED] [1.2] IE8 Performance
    By softmachine2011 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 05, 2011, 12:02 PM
  3. [CLOSED] Ext.net performance on Mono
    By Timur.Akhmerov in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 24, 2010, 9:23 AM
  4. [CLOSED] Response performance
    By acrossdev in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 31, 2010, 7:25 PM
  5. [CLOSED] Performance issue with 0.8
    By reinout.mechant@imprss.be in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Mar 26, 2009, 7:31 PM

Tags for this Thread

Posting Permissions