On 12/10/09 00:32, Linda W wrote:
>
> Under maxmem, it says:
>
> 'maxmemtot' 'mmt'       number  (default between 2048 and 10240 (system
>                                   dependent) or half the amount of memory
>                                   available)
>                          global
>                          {not in Vi}
>          Maximum amount of memory (in Kbyte) to use for all buffers together.
>          Maximum value 2000000.  Use this to work without a limit.  Also see
>          'maxmem'.
> ----
>   1 minor unclarity:
>
> 1) 2048-10240 Bytes is awfully small for today's systems...should this
>      number be said to be in 'KB'?  Maybe it should start defaulting to 'MB'
>      (with appropriate default changes -- or allow 'units' to be specified?
>      like MB/mb or tb/TB?
>
> 2) One minor (outdated) statement: "Maximum value=2000000" -- that doesn't
>      apply to 64 bit machines.  I'm logged in remotely to a linux box running
>      gvim and 'maxmem' shows about 3x that amount.
>
>
> Subnote:
>
>      Is this the correct place to report bugs, or is there a bug database
> I should file things in?
>
> tnx,
> -l

The actual default is *either* a system-dependent setting between 2048 
(2Mbyte) and 10240 (10 Mbyte), *or* half what is available, *whichever 
is larger*, up to 2 million or so (2GB) on 32-bit machines, possibly 
even more'n that on 64-bit machines. My floortop computer has a 32-bit 
CPU, 2 gig of memory, and gvim starts up with &mm == &mmt == 1010360 by 
default. I don't feel any need to make it bigger. As Bram said, hey, do 
you really need more than 2 gig for *a single instance of a single 
plaintext editor* ?

I _have_ heard of files even huger than that, but in that case I suppose 
they could be "cut out to small enough chunks" by some stream-editor 
beforehand, and, if necessary, reassembled by cat (or similar) 
afterwards. Doing search operations in a very large file becomes 
measurably slow anyway. My largest editfile is a 33 megabyte *.txt (a 
couple of orders of magnitude below that maximum), and I have time to 
drink a (Moroccan-size) glass of tea between starting a relatively 
simple search and finding the match.


Best regards,
Tony.
-- 
God is real, unless declared integer.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to