P
Patrick Tingen
Guest
A few months ago I did a comparison between ABL and .Net. I wrote a double loop with X and Y both from 1 to 1000 and calculating the Pythagorean theorem for x and y. DEFINE VARIABLE X AS INTEGER NO-UNDO. DEFINE VARIABLE Y AS INTEGER NO-UNDO. ETIME(YES). DO X = 1 TO 1000: DO Y = 1 TO 1000: SQRT(X * X + Y * Y). END. END. MESSAGE ETIME VIEW-AS ALERT-BOX INFO BUTTONS OK. On my computer, this took 1060 msec. The same solution in c# was 100 times as fast and took only 10msec. The sheer power of .Net runs circles around an ABL solutions in terms of performance. I guess this is the penalty for working in a language that is highly optimized to work with transactions and databases. Oh, btw, I also tested these variations: Remove NO-UNDO -> 1462 msec Use SQRT(EXP(X,2) + EXP(Y,2)) -> 2060 msec Use DECIMAL instead of INTEGER -> 2473 msec All of the above -> 2985 msec
Continue reading...
Continue reading...