Posted 20 years ago
by painetraine

I am modifying several PatternGroups at runtime by adding LexicalPatterns to them.
However, because I can sometimes add items which the editor hiccups on when I do a IsUpdating = false, I do IsUpdating true/false before/after each of the 6 groups I update. For large scripts this causes longer waits since I'm guessing it has to reparse doc 6 times with new items as opposed to 1 time if I were to wrap the entire update in a single IsUpdating t/f.
I would like to wrap whole update in one IsUpdating t/f but I need to know which group had bad items so I don't have to rollback all 6 just because 1 might have invalid tokens. is there a way to validate a PatternGroup to make sure it would accept the changes before calling IsUpdate = false so that I could eliminate some redudancy?
Also, in terms of speed, I have been thinking of saving various configurations as separate compiled language files. Would loading different language files be faster than simply updating the patteren groups at runtime or is there no real speed difference?
Also, when are we going to see the lexical parsing speed improvements (ie v3.0 or whatever you plan to call next major release) <IMG SRC="smile.gif" border="0">
Thanks,
Ashton
However, because I can sometimes add items which the editor hiccups on when I do a IsUpdating = false, I do IsUpdating true/false before/after each of the 6 groups I update. For large scripts this causes longer waits since I'm guessing it has to reparse doc 6 times with new items as opposed to 1 time if I were to wrap the entire update in a single IsUpdating t/f.
I would like to wrap whole update in one IsUpdating t/f but I need to know which group had bad items so I don't have to rollback all 6 just because 1 might have invalid tokens. is there a way to validate a PatternGroup to make sure it would accept the changes before calling IsUpdate = false so that I could eliminate some redudancy?
Also, in terms of speed, I have been thinking of saving various configurations as separate compiled language files. Would loading different language files be faster than simply updating the patteren groups at runtime or is there no real speed difference?
Also, when are we going to see the lexical parsing speed improvements (ie v3.0 or whatever you plan to call next major release) <IMG SRC="smile.gif" border="0">
Thanks,
Ashton