mark-christiaens/xtext — Issue #29: Grammar information is serialized each time a node model is serialized
Author: mark-christiaens
Created: 2012-01-20 14:00:59+00:00
State: open

It seems like each cache entry serializes the complete grammarIDMap over and over again. I don't think that's necessary. I've something in mind like SerializationConversationContext but for the grammar elements itself. Iff the cache is valid, the grammar element mapping from id to uri / EObject will be the same when constructed from the IGrammarAccess or from the serialized stream. Therefore I'd only write a md5 hash of the grammar element mapping to the stream. This should speed up serialization / deserialization as well as reduce memory consumption.