Yes, I`ll take care of sync. For example, as I imaging this:
Every time, when I`m opening file in syntaxEditor, I`m checking cache (cache is the file on disk, so it should not be cleared between app starts). if I had opened this file before I could calc some hash on it, and use it + file name as a key. If there is no file, or saved hash number is wrong - i`ll parse it. If no - so, we had opened it before, and nothing changed - I could just take already parsed data from file and disallow parsing of it.
The idea is to improve performance of our editor, based on SyntaxEditor. I need some logic, to make editor remember already parsed data, and disallow parsing the same twice.
Question is: how can I serialize parsed data to file, so I could then deserialize it, and use it without parsing again? It is not important to serialize - could be other ways, I need just to get this behavior. Maybe SyntaxEditor supports smth, that can help me?
[Modified at 06/04/2010 09:48 AM]
[Modified at 06/04/2010 09:49 AM]