aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Remove the mf_dont_release global after getting rid of maxmem[tot]Felipe Oliveira Carvalho2017-04-11
|
* Remove maxmem and maxmemtot optionsFelipe Oliveira Carvalho2017-04-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > The option 'maxmem' ('mm') is used to set the maximum memory used for one > buffer (in kilobytes). 'maxmemtot' is used to set the maximum memory used for > all buffers (in kilobytes). The defaults depend on the system used. These > are not hard limits, but tell Vim when to move text into a swap file. If you > don't like Vim to swap to a file, set 'maxmem' and 'maxmemtot' to a very large > value. The swap file will then only be used for recovery. If you don't want > a swap file at all, set 'updatecount' to 0, or use the "-n" argument when > starting Vim. On today's systems these values are huge (4GB in my machine with 8GB of RAM since it's set as half the available memory by default) so the limits are never reached in practice, but Vim wastes a lot of time checking if the limit was reached. If the limit is reached Vim starts saving pieces of the swap file that were in memory to the disk. Said in a different way: Vim implements its own memory swapping mechanism. This is unnecessary and inefficient since the operating system already virtualized the memory and will swap to the disk if programs start using too much memory. This change does... 1. Reduce the number of config options and need for documentation. 2. Make the code more efficient as we don't have to keep track of memory usage nor check if the memory limits were reached to start swapping to disk every time we need memory for buffers. 3. Simplify the code. Once `memfile.c` is simple enough it could be replaced by actual operating system memory mapping (`mmap`, `MemoryViewOfFile`...). This change does not prevent Vim to recover changes from swap files since the swapping code is never triggered with the huge limits set by default.
* cmake: Do not use ExternalProjectZyX2017-04-09
| | | Necessary argument (EXCLUDE_FROM_ALL) only appears in 3.1.0.
* cmake: Do not build clint-error-files by defaultZyX2017-04-09
|
* Merge #6439 from ZyX-I/fix-gc-failuresJustin M. Keyes2017-04-09
|\ | | | | unittests: Force GC, fix GC failures in typval_spec
| * vim.h: Remove strange commentsZyX2017-04-09
| |
| * headers: Remove useless HAVE_CONFIG_H macrosZyX2017-04-09
| | | | | | We do not have non-cmake build options, cmake always does configure_file.
| * unittests: Move allocating vimconv_T to a functionZyX2017-04-09
| |
| * unittests: Do not GC typval_T which is owned by a diZyX2017-04-09
| |
| * unittests: Do not unref partial which is owned by Callback structureZyX2017-04-09
| |
| * unittests: Use Neovim memory allocation for vimconv_TZyX2017-04-09
| | | | | | | | Not sure whether this is going to fix things though, but core dump does not contain Neovim functions in stack in this case.
| * unittests: Do not gc what is already freedZyX2017-04-09
| |
| * ci: Increase check-single-includes wait time to 10sZyX2017-04-09
| |
| * ci: Allow check-single-includes to hangZyX2017-04-09
| |
| * unittests: Move checking cores to check_child_errZyX2017-04-08
| |
| * unittests: Fix testlint failureZyX2017-04-07
| |
| * ci: Really continue tests on failure, print global summaryZyX2017-04-07
| |
| * unittests: Force GC, fix GC failures in typval_specZyX2017-04-06
| |
* | Merge #6478 from ZyX-I/conv-fixesJustin M. Keyes2017-04-09
|\ \ | | | | | | Remove conversions which are not needed when &encoding is UTF-8
| * | unittests: Fix linter errorZyX2017-04-09
| | |
| * | *: Remove useless assertsZyX2017-04-08
| | |
| * | doc: Update documentationZyX2017-04-08
| | |
| * | *: Fix linter errorsZyX2017-04-08
| | | | | | | | | | | | | | | | | | Drops comments `// for …` that do not pass linter for them being unmaintainable and fast to becoming incomplete or even incorrect. Mention @dedmass
| * | unittests: Do not alter p_enc in decode unit testZyX2017-04-08
| | |
| * | eval/*code,shada: Drop support for converting UTF-8 from/to p_encZyX2017-04-08
| | | | | | | | | | | | Not needed any longer since p_enc is always utf-8.
| * | eval/decode: Omit calling convert_setup for each stringZyX2017-04-08
| | | | | | | | | Uses the same trick eval/encode does.
| * | shada: Initialize vimconv_TZyX2017-04-08
| | |
| * | eval/decode,shada: Do not forget to clean up convertersZyX2017-04-08
| | |
* | | cmake: Use archive instead of downloading *.json files (#6482)Nikolai Aleksandrovich Pavlov2017-04-09
| | |
* | | test: retry(): Report number of retries. (#6475)Justin M. Keyes2017-04-09
| | | | | | | | | tui_spec.lua: Retry the terminal-mode test.
* | | refactor/single-includededmass2017-04-08
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #6463 refactor/single-include: file_search.h Closes #6455 refactor/single-include: hardcopy.h Closes #6457 refactor/single-include: if_cscope.h Closes #6458 refactor/single-include: mark.h Closes #6461 refactor/single-include: mbyte.h Closes #6462 refactor/single-include: memline.h Closes #6464 refactor/single-include: menu.h Closes #6468 refactor/single-include: ops.h Closes #6470
* | refactor/single-include: fold.h #6456dedmass2017-04-08
| |
* | refactor/single-include: ex_getln.h #6454dedmass2017-04-08
| |
* | refactor/single-include: memline_defs.h #6465dedmass2017-04-08
| |
* | refactor/single-include: move.h #6469dedmass2017-04-08
| |
* | refactor/single-include: ex_cmds.h #6453dedmass2017-04-08
| |
* | refactor/single-include: digraph.h #6444dedmass2017-04-08
| |
* | refactor/single-include: cursor_shape.h #6442dedmass2017-04-08
| |
* | Merge #6473 from jamessan/vim-8.0.0499Justin M. Keyes2017-04-08
|\ \ | | | | | | vim-patch:8.0.0499,8.0.0550
| * | lintJames McCoy2017-04-07
| | |
| * | vim-patch:8.0.0550James McCoy2017-04-07
| | | | | | | | | | | | | | | | | | | | | Problem: Some etags format tags file use 0x01, breaking the parsing. Solution: Use 0x02 for TAG_SEP. (James McCoy, closes vim/vim#1614) https://github.com/vim/vim/commit/9585a1655ba0d34ea88574617112093a9bd4f2e9
| * | vim-patch:8.0.0499James McCoy2017-04-07
|/ / | | | | | | | | | | | | Problem: taglist() does not prioritize tags for a buffer. Solution: Add an optional buffer argument. (Duncan McDougall, closes vim/vim#1194) https://github.com/vim/vim/commit/c6aafbaf3ea755e3ab4ee2e3045911126a08b038
* | win: os_get_hostname() #5416 (#6413)Justin M. Keyes2017-04-07
| |
* | eval: delimit string with NUL byte (#6467)Nicolas Hillegeer2017-04-07
| | | | | | | | | | | | | | | | | | | | A recent refactor left cpy without a NUL terminator, simplify the code instead of patching over it. Instead of plain memcpy, it'd be better to employ harder to misuse string functions made for this purpose like xstrlcpy(), but path_tail() takes char_u arguments and returns them, leading to a lot of ugly casting. Fixes #6431.
* | completion: fix segfault with ignorecase+infercase (#6452)Justin M. Keyes2017-04-06
| | | | | | | | | | Helped-by: Matthew Malcomson <hardenedapple@gmail.com> Closes #6451
* | refactor/single-include: diff.h (#6443)Carlo Abelli2017-04-06
|/
* vim-patch: Update regex for included_patches array (#6449)James McCoy2017-04-06
| | | | | 28dafe3ff const-ified the array without updating the regex. [ci skip]
* Merge #6440 'test: Remove "tickle" hack'Justin M. Keyes2017-04-06
|\
| * test: retry() works with asserts; error() not required.Justin M. Keyes2017-04-06
| |
| * tests: short form `screen:except(func)` expects condition only. #6440Björn Linse2017-04-06
|/ | | | | | - Use this to properly test cursor shape events. - tests: update screen_basic_spec to use `screen:expect` short form. Clearer than using `screen:wait` directy.