|
I don't know how alloc/dealloc works but clear can use a large number of cycles. I would guess that alloc/dealloc would be better but I would like to know how it works before being more confident. Richard Jackson Richard Jackson and Associates Ltd. IBM Business Partner mailto:richardjackson@richardjackson.net http://www.richardjacksonltd.com Telephone: 1 (303) 808-8058 -|-----Original Message----- -|From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On -|Behalf Of M. Lazarus -|Sent: Wednesday, November 08, 2000 12:05 AM -|To: RPG400-L@midrange.com -|Subject: CLEAR vs. DEALLOC/ALLOC -| -| -| Which is more efficient for an array: CLEAR or DEALLOC / -|ALLOC? If it's -|one of those "it depends" answers, then please specify the details. -| -| In my case the arrays are quite large. One is up to 5,000 entries and -|the other is variable, so I defined it as 32,767, based. No lookups are -|being done, so that is not a concern. TIA. -| -| -mark -| -|+--- -|| This is the RPG/400 Mailing List! -|| To submit a new message, send your mail to RPG400-L@midrange.com. -|| To subscribe to this list send email to RPG400-L-SUB@midrange.com. -|| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. -|| Questions should be directed to the list owner/operator: -|david@midrange.com -|+--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.