|
Karsten Hopp |
ffae7b |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
ffae7b |
Subject: Patch 7.3.226
|
|
Karsten Hopp |
ffae7b |
Fcc: outbox
|
|
Karsten Hopp |
ffae7b |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
ffae7b |
Mime-Version: 1.0
|
|
Karsten Hopp |
ffae7b |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
ffae7b |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
ffae7b |
------------
|
|
Karsten Hopp |
ffae7b |
|
|
Karsten Hopp |
ffae7b |
Patch 7.3.226
|
|
Karsten Hopp |
ffae7b |
Problem: On a 64 bit system "syn sync fromstart" is very slow. (Bjorn
|
|
Karsten Hopp |
ffae7b |
Steinbrink)
|
|
Karsten Hopp |
ffae7b |
Solution: Store the state when starting to parse from the first line.
|
|
Karsten Hopp |
ffae7b |
Files: src/syntax.c
|
|
Karsten Hopp |
ffae7b |
|
|
Karsten Hopp |
ffae7b |
|
|
Karsten Hopp |
ffae7b |
*** ../mercurial/vim73/src/syntax.c 2011-05-25 17:56:23.000000000 +0200
|
|
Karsten Hopp |
ffae7b |
--- src/syntax.c 2011-06-19 04:47:08.000000000 +0200
|
|
Karsten Hopp |
ffae7b |
***************
|
|
Karsten Hopp |
ffae7b |
*** 559,565 ****
|
|
Karsten Hopp |
ffae7b |
if (INVALID_STATE(¤t_state))
|
|
Karsten Hopp |
ffae7b |
{
|
|
Karsten Hopp |
ffae7b |
syn_sync(wp, lnum, last_valid);
|
|
Karsten Hopp |
ffae7b |
! first_stored = current_lnum + syn_block->b_syn_sync_minlines;
|
|
Karsten Hopp |
ffae7b |
}
|
|
Karsten Hopp |
ffae7b |
else
|
|
Karsten Hopp |
ffae7b |
first_stored = current_lnum;
|
|
Karsten Hopp |
ffae7b |
--- 559,571 ----
|
|
Karsten Hopp |
ffae7b |
if (INVALID_STATE(¤t_state))
|
|
Karsten Hopp |
ffae7b |
{
|
|
Karsten Hopp |
ffae7b |
syn_sync(wp, lnum, last_valid);
|
|
Karsten Hopp |
ffae7b |
! if (current_lnum == 1)
|
|
Karsten Hopp |
ffae7b |
! /* First line is always valid, no matter "minlines". */
|
|
Karsten Hopp |
ffae7b |
! first_stored = 1;
|
|
Karsten Hopp |
ffae7b |
! else
|
|
Karsten Hopp |
ffae7b |
! /* Need to parse "minlines" lines before state can be considered
|
|
Karsten Hopp |
ffae7b |
! * valid to store. */
|
|
Karsten Hopp |
ffae7b |
! first_stored = current_lnum + syn_block->b_syn_sync_minlines;
|
|
Karsten Hopp |
ffae7b |
}
|
|
Karsten Hopp |
ffae7b |
else
|
|
Karsten Hopp |
ffae7b |
first_stored = current_lnum;
|
|
Karsten Hopp |
ffae7b |
*** ../vim-7.3.225/src/version.c 2011-06-19 04:31:54.000000000 +0200
|
|
Karsten Hopp |
ffae7b |
--- src/version.c 2011-06-19 04:49:53.000000000 +0200
|
|
Karsten Hopp |
ffae7b |
***************
|
|
Karsten Hopp |
ffae7b |
*** 711,712 ****
|
|
Karsten Hopp |
ffae7b |
--- 711,714 ----
|
|
Karsten Hopp |
ffae7b |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
ffae7b |
+ /**/
|
|
Karsten Hopp |
ffae7b |
+ 226,
|
|
Karsten Hopp |
ffae7b |
/**/
|
|
Karsten Hopp |
ffae7b |
|
|
Karsten Hopp |
ffae7b |
--
|
|
Karsten Hopp |
ffae7b |
Press any key to continue, press any other key to quit.
|
|
Karsten Hopp |
ffae7b |
|
|
Karsten Hopp |
ffae7b |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
ffae7b |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
ffae7b |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
ffae7b |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|