You said you run the examples on the web page you mentioned earlier, right?
Which code did you run? How did you confirm profiling numbers? How much 
was the memory consumption? There should be exact information here and 
there.

Commons.Xml.Relaxng.Derivative objects are created a lot, and lots of 
them are linked to the same objects so they don't consume more memory. 
You won't be able to see that if you're just looking at VS debugger though.

Atsushi Eno

On 2010/10/26 10:24, Panop Suvaphrom wrote:
> Hi,
>
>          I have used the Commons.Xml.Relaxng.dll in VS2010.
>          I also think that the memory is going up especially when validation 
> exception occurred.
>          When profiling on .net memory profiler, I can see many of 
> Commons.Xml.Relaxng.Derivative.
>
>         Not sure about this, Do I miss something ?
>
> Thank You,
> Panop S.
>
>
> -----Original Message-----
> From: Atsushi Eno [mailto:atsushi...@veritas-vos-liberabit.com]
> Sent: Saturday, October 23, 2010 1:57 PM
> To: Panop Suvaphrom
> Cc: mono-devel-list@lists.ximian.com
> Subject: Re: [Mono-dev] Need Help on Commons.Xml.Relaxng.dll
>
> Hello,
>
> That's an interesting page. I didn't know that and am pretty glad to see it :)
>
> Hmm, but that sounds weird. I tried some of the samples on that page with 
> mono --profile (simpler one), but cannot see such huge memory consumption. 
> Can you show me the --profile result (or any profiling stuff) ?
>
> Commons.Xml.Relaxng is based on James Clark's derivative algorithm[*1] and I 
> have implemented all the optimization trick such as avoiding exponential 
> blowup and memoization. There could be of course bugs that prevents them 
> though.
>
> [*1] http://www.thaiopensource.com/relaxng/derivative.html
>
> Atsushi Eno
>
> On 2010/10/22 15:38, Panop Suvaphrom wrote:
>> Hi,
>>
>>            I am not sure if this is the right place to ask.
>>
>>           Now I have project to develop and validate RNC file that I
>> have read from
>> http://www.xs4all.nl/~wrb/Articles/Article_XML_RelaxNG_01.htm
>> <http://www.xs4all.nl/%7Ewrb/Articles/Article_XML_RelaxNG_01.htm>.
>>
>>           My problem is the memory consumption continues increasing
>> more and more, and then the machine is quite slow.
>>
>>           I try to search on the web but no discussion on this issue.
>> Has anyone known about this and any suggestion would be appreciate.
>>
>>           And also when I turn the validation off from code, memory
>> consumption is in normal.
>>
>> Big ThanksJ,
>>
>> Panop S.
>>
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>
>

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to