I am investigating using a grammar cache pool to improve schema validation performance. I understand the concept, but the only piece that I would like to know about is whether you have to use it in conjunction with a parser pool as well?
For me, it makes sense if you are re-using the same parser each time as it will be configured to use the pre-compiled schema each time. However, if the parser is being created each time (i.e. localling in a method) then does the grammar cache pool stand much chance of working? Does the grammar cache pool get statically stored once it has been pre-compiled and will be available in that state for the remainder of the application's life?
Any thoughts out there?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com