Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Speed of a5w pages?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Speed of a5w pages?

    Hi guys,

    I must conclude that a5w pages are rendered slow in v7.
    Will Alpha improve this performance issue with the next version(v8)?

    Specifations
    DB:Alpha dbf tables/max records 150 in a table
    Components: grids and some dialogs
    WAS running@Windows XP PRO/2.4 Ghz/internal memory 1.5 GB.
    Browser: Firefox and MS IE

    Kind regards,

    Brendo Bongers
    Ing./bict Brendo Bongers
    Software Engineer

    http://www.brendobongers.nl

    "There's more than one way to skin a cat."

    #2
    Re: Speed of a5w pages?

    Nobody?
    Ing./bict Brendo Bongers
    Software Engineer

    http://www.brendobongers.nl

    "There's more than one way to skin a cat."

    Comment


      #3
      Re: Speed of a5w pages?

      Brendo,

      I read in an email of Alpha5 that once Ajax techniques are implemented, the raise in performance will be dramatic...I hope this or parts of it will be implemented in V8. regards, Ron

      Comment


        #4
        Re: Speed of a5w pages?

        Thanks Ron.

        I know that Alpha is introducing AJAX.
        One of the benefits of AJAX is that it use less bandwith by reducing full requests to the server.
        But all webbased languages(ASP/PHP/ASP.NET/JSP) will gain performance when using AJAX. So that's a general benefit.

        I think that Alpha could gain much more performance even without the use of AJAX by tracking down the bigger/main performance issues in V7.

        Kind regards

        Brendo
        Ing./bict Brendo Bongers
        Software Engineer

        http://www.brendobongers.nl

        "There's more than one way to skin a cat."

        Comment


          #5
          Re: Speed of a5w pages?

          Originally posted by B.B.Bongers
          I think that Alpha could gain much more performance even without the use of AJAX by tracking down the bigger/main performance issues in V7.
          One of the issues with Alpha's slowness on the web is that it re-compiles the HTML on runtime - everytime you load or reload a page. This is being changed so the HTML will be created at design time (hopefully for v8), not runtime.

          If you handcode the HTML, etc. yourself, Alpha is very fast, as Cal Locklin has demonstrated. Of course, you don't want to hand code, so hopefully the above will address that issue.
          Peter
          AlphaBase Solutions, LLC

          [email protected]
          https://www.alphabasesolutions.com


          Comment


            #6
            Re: Speed of a5w pages?

            Thanks Peter

            I hope they will improve this in v8!
            Exactly, the benefit of the components is that it saves developmenttime and it's possible to build webpages without high level knowledge of HTML/CSS/javascript.
            But if it has too much impact on performance, it loses her benefit.
            Due to the fact that nowadays endusers are not patient enough to wait on slow loading pages.
            Ing./bict Brendo Bongers
            Software Engineer

            http://www.brendobongers.nl

            "There's more than one way to skin a cat."

            Comment


              #7
              Re: Speed of a5w pages?

              Originally posted by B.B.Bongers
              Due to the fact that nowadays endusers are not patient enough to wait on slow loading pages.
              Including me! :)
              Peter
              AlphaBase Solutions, LLC

              [email protected]
              https://www.alphabasesolutions.com


              Comment


                #8
                Hand coding

                Speculating on this subject of hand coding, I wonder if any of the following increase performance short of actually hand coding from scratch:

                1) Develop the component as normal, then strip out any unused xbasic? By unused I mean anything that sets a value that the Alpha interpreter would consider default; or remove the many left over references that tend to build up as one switches from one setting to another (e.g. "DropdownBox.Choices =" still exists if you change the field from choice to textbox).

                2) Running something like TidyHTML that is supposed to clean up html, removing redundant tags, etc.

                3) Selective modification of the A5W page code such as removing a runtime call to the A5W interpreter and replacing with a block of code (ala design time versus runtime HTML).

                4) Selectively remove (simple Delete keystroke) sections of the component that appear on the A5W page when the component is inserted (Echo, Update Errors, Search, Data, Details).

                My uninformed question is, "what one or two things can I do to get X% greater speed". If I could make the same repetitive change to all of my pages, and that gained me 20%, I'd spend the time, develop a protocol.
                Steve Wood
                See my profile on IADN

                Comment


                  #9
                  Re: Speed of a5w pages?

                  I posted this a while back, but it still applies

                  Speed in Web Pages

                  To expand on that post, there are some other simple things that will increase speed. First, avoid multi-row grids with dropdowns. Every dropdown has to be populated, which slows the page and adds a lot of text to the page. Use lookups where possible.

                  Avoid dropdowns with large numbers of options. If the number of options is more than about 100, the amount of text on the page becomes large enough to have significant impacts on speed.

                  Avoid calculated fields unless they are simple calculations based only on the fields for the tables linked to the component. Calculated fields slow any layout, including the desktop. Because of the nature of the browser environment, that speed impact is more noticable. If you need a large number of calculated fields, it may be better to put the calculated fields in the table, rather than calculate them at runtime. This is different than the desktop where calculated fields on a layout are more common.

                  Avoid grids with many lines, especially editable grids. Avoid large numbers of fields in grids. An editable grid stores the data in 2 places. First, the data is stored in the visible fields. But as mentioned in the other post, all of the editable data for all lines is also stored in a hidden field for Optimistic Record Locking to check if the data on the page was changed by another user prior to committing the data. This hidden field can get quite large if there are a large number of editable rows. Sometimes reducing the number of rows can have a major impact on speed. I typically limit any editable grid to 10 rows or less. If the grid is view only, the impact from large numbers of rows is less, but still a concern.

                  Avoid extensive use of inline styles. If you need a change that will impact all style elements on a page, such as changing the font size, create a new custom style. A CSS file is loaded once, whereas styles on a page just add overhead on every page load. If you need to change the width of a column in a tabular grid, set the width of the header, not the individual cells. This will set the width of every cell in the column without adding any inline style code to every cell.

                  Keep pages simple. Use Quick Search in place of search sections if possible.

                  Avoid multiple components on the same page. Every component has to be loaded and run. As you add more components, that slows the page. The exception is the nav component which is very fast.

                  As Steve pointed out, remove any unnecessary code from a page. I recently saw a page that was very slow because the same component loaded multiple times, but only displayed once. The problem occured because the developer had added the component, then removed it in the WYSIWYG mode, and then added it again without saving the page - multiple times. Every time a component is added, code is added to the source of the page to load and run the component. If you remove the component in the WYSIWYG mode, that code is not initially removed. If you save the page at that point, the save action checks for orphaned code and will remove it. If you don't save, but just add the component again, you could end up with duplicated code, which will cause a noticable slowdown

                  Anything you can do to reduce the code on any html page will improve speed. Most of the tips above apply to any web page, not just Alpha components.

                  Comment


                    #10
                    Re: Speed of a5w pages?

                    Jerry - so nothin' I can do, eh.

                    Is it possible to quantify - which one or two are the biggest bang for the buck? Can you estimate (theoretically) if one did ALL of the items you list on an "average" page*, that the result would be in the neighborhood of 2%, 10%, 50% or 100% faster. If, for example, the best improvement possible is less than 20%, it probably won't make sense to bother, unless there is one or two items that make up the bulk of that percent.

                    I may try to categorize these in to a check list or something.

                    * An average page would have a single component and a nav, and a little of each of the problem code you referred to, with the exception of the egregious multiple ghost components resulting from add/remove/add without saving.
                    Steve Wood
                    See my profile on IADN

                    Comment


                      #11
                      Re: Speed of a5w pages?

                      Anything done to reduce the page size will normally increase speed. While it is very difficult to put a number on any change, probably the biggest single impact comes from reducing the size of editable grids. But add up enough little things and the speed impact can be very noticeable. Also, there have been some changes in recent V7 builds to improve component speed, particularly with larger and more complex components. Some of these changes are on the order of .2 to .3 seconds improvement just in the time to load the component parameters, which on a percentage basis is huge.

                      Comment


                        #12
                        Re: Speed of a5w pages?

                        Originally posted by JerryBrightbill
                        Anything done to reduce the page size will normally increase speed.
                        A lot of users have a fast internet/lan connection. In the middle 90's we had 56 k modems:)
                        Reducing the size of a webpage by optimize techniques will not make a major difference I think.
                        Crapy HTML code is not nice to view and is more difficult to edit, but a browser as MSIE will not noticeable render slower.

                        At serverside, there are some bigger things that could increasing loadingtime.
                        As example:
                        - connecting to a database is a time consuming proces.
                        - fetching records from a table
                        - wrong written queries
                        - not closing and clearing objects
                        - unwanted queries to the database
                        - the constructed framework/parser
                        - including not needed code/libraries/functions


                        Regards
                        Last edited by B.B.Bongers; 07-04-2006, 02:55 PM.
                        Ing./bict Brendo Bongers
                        Software Engineer

                        http://www.brendobongers.nl

                        "There's more than one way to skin a cat."

                        Comment


                          #13
                          Re: Hand coding

                          Originally posted by Steve Wood
                          Speculating on this subject of hand coding, I wonder if any of the following increase performance short of actually hand coding from scratch:

                          1) Develop the component as normal, then strip out any unused xbasic? By unused I mean anything that sets a value that the Alpha interpreter would consider default; or remove the many left over references that tend to build up as one switches from one setting to another (e.g. "DropdownBox.Choices =" still exists if you change the field from choice to textbox).

                          2) Running something like TidyHTML that is supposed to clean up html, removing redundant tags, etc.

                          3) Selective modification of the A5W page code such as removing a runtime call to the A5W interpreter and replacing with a block of code (ala design time versus runtime HTML).

                          4) Selectively remove (simple Delete keystroke) sections of the component that appear on the A5W page when the component is inserted (Echo, Update Errors, Search, Data, Details).

                          My uninformed question is, "what one or two things can I do to get X% greater speed". If I could make the same repetitive change to all of my pages, and that gained me 20%, I'd spend the time, develop a protocol.
                          Hi Steve,
                          Where do I get TidyHTML? ever link I find has very old ver from 2003
                          Kind Regards,
                          Ray Roosa
                          Raylin Micro, LLC.

                          Comment


                            #14
                            Re: Speed of a5w pages?

                            Your guess... Maybe that's the latest. I've only used it once a long time ago.
                            Steve Wood
                            See my profile on IADN

                            Comment


                              #15
                              Re: Speed of a5w pages?

                              Back in the day when all I did was design web pages hand coding in notepad, I used to use:

                              http://www2.imagiware.com/RxHTML/
                              Cheryl
                              #1 Designs By Pagecrazy
                              http://pagecrazy.com/

                              Comment

                              Working...
                              X