Re: [xml] xpath evaluation timeout

2012-10-20 Thread Daniel Veillard
On Thu, Oct 18, 2012 at 06:00:33PM -0700, Zhigang Chen wrote: Hi We sometimes run into the situation where a pretty expensive xpath (e.g. .//table//td[@class]) is run on a big document (~ 9M) and it takes very very long. In fact we never see it finish. Have you tried with 2.9.0 ? There

Re: [xml] xpath evaluation timeout

2012-10-20 Thread Liam R E Quin
On Thu, 2012-10-18 at 19:25 -0700, Zhigang Chen wrote: Thanks Liam We are building a platform to which codes containing xpaths are submitted by external users. Manual optimization of xpaths are infeasible. Do you know about any tools that can automate it? Setting aside the security

[xml] xpath evaluation timeout

2012-10-18 Thread Zhigang Chen
Hi We sometimes run into the situation where a pretty expensive xpath (e.g. .//table//td[@class]) is run on a big document (~ 9M) and it takes very very long. In fact we never see it finish. I did some digging and found that it is spending very long time on xmlXPathNodeSetMergeAndClear. So I

Re: [xml] xpath evaluation timeout

2012-10-18 Thread Liam R E Quin
On Thu, 2012-10-18 at 18:00 -0700, Zhigang Chen wrote: Hi We sometimes run into the situation where a pretty expensive xpath (e.g. .//table//td[@class]) is run on a big document (~ 9M) and it takes very very long. In fact we never see it finish. [resending from the right account, sorry] I

Re: [xml] xpath evaluation timeout

2012-10-18 Thread Zhigang Chen
Thanks Liam We are building a platform to which codes containing xpaths are submitted by external users. Manual optimization of xpaths are infeasible. Do you know about any tools that can automate it? - Z On Oct 18, 2012, at 7:15 PM, Liam R E Quin l...@holoweb.net wrote: On Thu, 2012-10-18