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

[REBOL] Re: Limiting Serie sizes (native!)

From: nitsch-lists:netcologne at: 14-Aug-2003 16:06

[carl--rebol--com] wrote:
>It turns out that REBOL does limit series expansion to protect itself internally, >although not to the granular level that you suggest. >(Two weeks ago, I hit the limit for the first time ever with REBOL on one of our >net servers. It was loading a 500MB file on a regular basis (spam filter data file). >The LOAD happened so quickly that I had no idea the file was that large.) > >It would be possible for there to be a way to limit a series on a per series >basis, although it is interesting to think about the methods of such a function -- >in other words, you have to have a way to set, get, and change the limits on >a per series basis -- sort of like set-modes does for ports. > >An example might be: > > set-modes series [limit: 10000] >
array [2 2 2 2 2 ..] or with the load, its (length? messages) * (medium-message-length). hard to balance IMHO. Eventually some restriction to newly allocated memory? add-only-mb 4 [load %spam.r]
> >Of course, if we did that, then you might also want other controls for blocks, >like: > > set-modes block [newlines: false] > >which would remove the hidden newline markers from blocks (ie. what happens >on MOLDed LOADed blocks). > >Am I right? >
Well, i would be very happy about a [newlines: true]. because typical software is very surprised about molds 1MB-lines. including open/lines in old versions. lots of very short lines are at least loadable in such editors. Really very happy i would be if i can set newlines-markers individually. because of data: [ name "me" id 1 name "you" id 2 ] ;= [ ;= name "me" id 1 ;= name "you" id 2 ;= ] head change/part skip data 4 [name "you" id "3"] 4 ;= [ ;= name "me" id 1 name "you" id "3" ;= ] formatting broken. mark-newline skip data 4 would help? But Holger said that makes no sense IIRC, something like wrapping would be preferable. Maybe i explained cryptic again?