Using the tree query parameter is much faster than the depth=2 query. According to the documentation on the Hudson built-in APIs (see "Managing the amount of data that you select at http: // hudson / api / ), tree more efficient than excluding it because the server does not generate or discard data.
I think the following URL will work for the request in your question:
http://hudson/api/xml?tree=jobs[name,lastSuccessfulBuild[number,url,timestamp]]
On my system with 40 other jobs:
$ time curl "http://hudson/api/xml?tree=jobs\[name,lastSuccessfulBuild\[number,url,timestamp\]\]" <hudson><job><name>Example Windows build</name> <lastSuccessfulBuild><number>7</number> <timestamp>1264806194000</timestamp> ...lots of unformatted XML... real 0m0.166s user 0m0.062s sys 0m0.093s
source share