|
just to add to this, while bin to bin appears to be faster than int to int, adding to a bin variable is a terrible performer. the raw results from my timing loop: add to int ( 10i 0 ) - 490 milliseconds add to bin ( 9b 0 ) - 9911 milliseconds! add to packed ( 7p 0 ) - 1753 milliseconds -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Steve Richter Sent: Monday, February 09, 2004 11:12 AM To: Chat. Rpg400-L Subject: int vs binary questions is there a dds equivalent to "10i 0"? I ran a timing loop that copied between 10i 0 and 9b 0 variables. here are the results: bin to bin was the fastest. int to int was 10% slower than bin to bin. bin to int took twice as long as bin to bin. any idea why bin to bin runs faster than int to int? The practical side of this is that I have gotten into the practice of declaring all integer type variables as 10i 0. But when I have to store such a field in a database file, I dont know the best way to declare the database field. -Steve _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.