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

Best and Worst of times

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

    Best and Worst of times




    H:Program FilesSoftQuadHoTMetaL PRO 5gifstesta5v4.htm



    It was the best of times and it was the worst of
    times.
    I've been an alpha software user since 94, and some times I feel like I'm
    just
    getting started.

    I saw John's post about the speed differance between the old code of a5v1
    and the new code for a5v4 Will with more to do than I have time I just toke
    some time to explore and this is what I found.
    I was told by one of my competers that is app based on Fox Pro will do this
    to 85,000 records in 148 seconds. So really its not just a test its a thing of
    pride.

    My test system has a AMD 500 with 256 Ram, a 6.4 gig 5400 rpm drive and
    DMA33 controller.

    With 90,0015 records in a table with 145 fields.
    The scripts are posted below all they do is fetch thought the table changing
    the value in one field
    then fetch the next until it reaches the end of the table.
    All values are in seconds
    A5v4 Build 230
    oldcode 140,139,152,142

    newcode 241,218,218,217 without file_rw_exclusive,statusbar on

    newcode 248,225,226,227 with file_rw_exclusive,statusbar on

    A5v4.5 Build 263
    oldcode 184,184,213

    newcode 212,215,212,217 without file_rw_exclusive,statusbar on

    newcode 224,225,226,247 with file_rw_exclusive,statusbar on

    A5v5 Build 244
    oldcode 171,237,218,219

    newcode 319,306,without file_rw_exclusive,statusbar on

    newcode 224,223,without file_rw_exclusive,statusbar off

    Will A5v5 does have an excuss for it's performance it's still in beta. I
    read somewhere on the board that all they have to do is tweek the dll's

    ''XBasic
    DIM COUNT AS N

    dim name as c
    COUNT = 0
    'rem open invoices detail

    NAME = :a5.get_path()+"rainbow.dbf"

    db7 = db_use(NAME)

    'ih7 = INDEX_PRIMARY_PUT()

    'INVRECS = DB_RECORDS_GET(db7)

    t1 = toseconds(time())

    batch_begin(db7)

    fetch_first(db7)

    while .not. fetch_eof(db7)

    change_begin(db7)

    rainbow->bill_city="Mrtile"

    change_end(db7, .t.)

    fetch_next(db7)

    end while

    batch_end(db7)


    t2 = toseconds(time())


    db_close(db7)


    ui_msg_box("Program A BATCH","Seconds elapsed:"+STR(t2-t1))





    NewCode
    ''XBasic

    'rem Program B new syntax

    dim count as n

    count =0

    'Top:


    DIM iterations AS N


    dim tb7 as p

    dim total_records as n

    tb7 = table.open(:a5.get_path()+"rainbow.dbf")

    ib7 = tb7.index_primary_put()

    'total_records = tb7.records_get()

    'iterations = 0

    t1 = toseconds(time())



    'rem batch testin

    tb7.batch_begin()

    tb7.fetch_first()

    while .not. tb7.fetch_eof()


    tb7.change_begin()

    tb7.bill_city="MyWork"

    tb7.change_end(.t.)

    tb7.fetch_next()

    'iterations = iterations + 1

    'statusbar.percent(iterations,total_records)

    end while

    'statusbar.clear()

    tb7.batch_end()

    t2 = toseconds(time())

    tb7.close()

    ui_msg_box("Program A BATCH","Seconds elapsed:"+STR(t2-t1))

    'trace.writeln("Program B BATCH - Seconds elapsed:"+STR(t2-t1))

    'count=count+1

    'if count

    'goto top

    'else

    'end if

    END










    #2
    RE: Best and Worst of times

    Hi Nick,

    While the test may be somewhat comparable to foxPro, perhaps you should try an A5 update operation. This is the way Alpha beats many products, by moving the internal code down to lower levels and giving the user a higher level function.

    Regards,

    Ira J. Perlow
    Computer Systems Design & Associates
    [email protected]
    Regards,

    Ira J. Perlow
    Computer Systems Design


    CSDA A5 Products
    New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
    CSDA Barcode Functions

    CSDA Code Utility
    CSDA Screen Capture


    Comment


      #3
      RE: Best and Worst of times

      Nick,

      Should your message be entitled "A Tale of Two Speeds"?

      Selwyn responded to me and said:
      "The speed difference between a5v1's "handle" syntax and a5v 2/3/4's "object/pointer" syntax has been noted. we have figured out why this was happening and have fixed it in v5."

      I don't know if the builds you were testing incorporated these fixes.

      John

      Comment


        #4
        RE: Best and Worst of times

        or

        "
        The
        Agony
        and
        The
        Exctasy"
        There can be only one.

        Comment


          #5
          RE: Best and Worst of times

          Nick,

          Beta versions of any product are always run slower than their compiled release versions. My guess is that A5V5 will easily be as fast as V4 - I'm hoping faster.

          A few years ago, I went through the same thing and tested FoxPro's speed against A5V4. There was, at least then, no doubt that FoxPro did many things faster than Alpha Five.

          And, yes, it was also true that the difference was about 2 to 1; BUT, when one program took a minute and a half to update a field or two throughout 500,000 recs, and the other took three minutes, it seemed a small price to pay to also have the unique features Alpha Five brings to the table for developers.

          FoxPro is undeniably a seriously good database, but it also lacks Alpha Five's jaunty pragmatism, cheerful interface and redoubtable stamina under fire.

          Tell that to your competitors! Ha! (Ooops, got to switch to decaf...)

          Regards,

          Geoff Hollander









          (Perhaps this message should be titled:

          Comment


            #6
            RE: Best and Worst of times

            Hi,

            Some time ago, during email w/Selwyn, he stated that v5 will not hbe up to full speed until it is ready for release.

            Also, it's my understanding the version 4.5 will have the engine that v5 will have.

            kenn
            TYVM :) kenn

            Knowing what you can achieve will not become reality until you imagine and explore.

            Comment


              #7
              RE: Best and Worst of times

              Foxpro is a very good product. Since it was bought out by Microsoft the product is not being supported. A more correct comparision would be between Visual Fox and Alpha5v4.

              I am not sure what would be your comparision results.


              Bob Sullivan

              Comment

              Working...
              X