Re: Optimum syntax file size...

2007-02-27 Thread Yakov Lerner

On 2/18/07, Robert Hicks <[EMAIL PROTECTED]> wrote:

Is there a size limit that one should set as a ceiling for syntax file size?


No. Last year, somebody on this list reported using
1.5MB-size syntax file. File contained tens of thousands of
keywords. It worksed fast because keywords are matched based
on hashtable. Loading of such monstrous syntax file worked
amazingly fast, too.

Yakov


Re: Optimum syntax file size...

2007-02-27 Thread Charles E Campbell Jr

Robert Hicks wrote:

Is there a size limit that one should set as a ceiling for syntax file 
size?


Engspchk uses some rather large syntax files for its dictionary.  
Especially if you're using keywords, syntax file size isn't likely to be 
a problem.


Regards,
Chip Campbell



Re: Optimum syntax file size...

2007-02-19 Thread Peter Hodge
Hello,

If it is a C-style syntax where you're matching together lots of { } areas (or
if/endif blocks, etc), using regions, then you should provide an option to turn
it on/off, because this can be slow on large files (and get out of sync).

Thousands of keywords probably isn't an issue, but if you put them all on one
line it might slow things down (that might be a myth).  For readability sake,
maybe 12-50 per line?

Folding using regions is slow, you definitely should provide a way to turn this
feature off.

The new PHP syntax (http://www.vim.org/scripts/script.php?script_id=1571) is
quite large, but the only speed issue I've seen is with folding.

Try opening multiple windows of the same file and see if editting becomes slow
as Vim tries to re-sync the other windows in real-time.

Hope that helps,

regards,
Peter
  


--- Robert Hicks <[EMAIL PROTECTED]> wrote:

> Is there a size limit that one should set as a ceiling for syntax file size?
> 
> Robert
> 
> 


Send instant messages to your online friends http://au.messenger.yahoo.com 


Optimum syntax file size...

2007-02-18 Thread Robert Hicks

Is there a size limit that one should set as a ceiling for syntax file size?

Robert