dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Data retrieval: GET x POST

  1. #1
    flashguy
    Join Date
    May 2005
    Location
    In the mountains
    Posts
    341

    Data retrieval: GET x POST

    Long time I don't get here!

    Long story short I need to make some improvements on a VERY old app I made to a customer. It's a big one and it's completely in AS2. I have made several other apps in AS3 (so I am aware of its advantages over AS2) but due to the nature of this one there is not any chance of remake it. So I have to stick with AS2 in this case.

    This app deals with several server interactions (retrieves data from DB using ASPX) and I make all those interactions through querystring (GET method), so when data is loaded I just loop through it and load it into an array. There is so many time I did that so I don't remember a couple things:

    1) Is this possible do it instead using POST in AS2?
    2) Would it will speed up things? I mean looping through POST data is perceptibly faster than through GET?

    I am asking it because recently I added a feature to this app and the customer complained that when he uses this feature it longs to much to execute. Well this feature includes interaction with server (data retrieval). When I tested it I realized that the interaction itself (connection, request and data arrival) is very fast and that the delay is occurring during the process of PARSE the data from the querystring received. By the way, it's not a BIG querystring, around 1-2K at most.

    So I ask again: may it being caused due to the fact I am parsing GET data? Would be POST faster?

    Thanks!
    Visit my business at http://www.ballooncreator.com - Software Tool For Party Balloons Online Design!

  2. #2
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,808
    link and link seems to be a decent link for doing the comparisons. I can't say for certain that there are any speed differences. It just looks like 2 different ways to format the data.

    Not sure if this would be faster but instead of using a loop to place everything into an array, store everything in a single string using a unique deliminator. Then you can use String.split(). In my mind, using a hardcoded method for this could be faster than a loop.
    .

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center