Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: mysql-protocol

From: hallvard:ystad:oops-as:no at: 8-Mar-2004 0:57

Hi, This is a late reply to a message from june last year. Dixit Tim Johnson (16.54 26.06.2003):
>Hello Rebols: > DocKimbel and I had an OT exchange of emails early >this year in which I posed the the following: >That it would be convenient at times for me to have >the selection set from a query returned as a 'flat' >block. > >DocKimbel made the following code suggestions: > >Add 'flat' to locals-class. setting as either 'true >or 'false. > >in 'convert-types change the following line >if not empty? convert-body [foreach row rows :convert-body] >;to > if not empty? convert-body [ > either p/locals/flat? [ > row: rows > forskip row length? cols :convert-body > ][foreach row rows :convert-body] > ] >After implementing this - if memory serves me well - >DocKimbel indicated that he had observed less memory fragmentation >in comparison of the two methods.
Why change in 'convert-types? Couldn't one just as well change these lines in 'read-rows: row: make block! cols parse/all/case row-data [any [read-field (append row field)]] append/only rows row to either port/locals/flat? [ parse/all/case row-data [any [read-field (append rows field)]] ] [ row: make block! cols parse/all/case row-data [any [read-field (append row field)]] append/only rows row ] ? I'm ignorant. Please tell me what way is the best. Regards, HY