We have the same problem and our vob is very large. We have lshistory times from 20 mins until more then two hours. This makes continuous integration with hudson quite impossible.
What would help in my opinion is:
1. When clearcase polling considers the 'Excluded Regions' before lshistory in the whay, that it executes the lshistory command only in the path('s) which are left after applying the RegEx. That means it changes in the directory on the vob and executes the lshistory. If more lshistory commands are needed, the results have to be merged, but this shouldn't be a big problem. I tried it on our configuration on command line and this solution is faster using -recursive, otherwise the path is ignored.
2. What also could be done is introducing a new optional configuration field where the poll locations of lshistory can be configured.
3. Since we use snapshot views with update, another solution for us would be to use snapshot update for polling. If there is something updated, the build can be started. This would save the time of lshistory polling.
It seems to me that clearcase lshistory doesn't considers paths when using -all switch. I would prefer to make it configurable if lshistory uses -all and ignores paths or use -r(ecursive) and don't ignore paths. Then the user can decide which solution is faster on his machine.
For our case we would prefer solution three, because we would save some polling time on snapshot views. In my thought's remember the starting time of the last poll and use it for the current would help reducing polling time.
Thanx in advance,
Alfred
Updating the summary.