2

I'd like to be able to utilize lsco on the command line for better integration with Emacs, but it runs prohibitively slowly!

Usually, GUIs are slower!

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
Tim Visher
  • 12,786
  • 16
  • 58
  • 66

2 Answers2

3

Not with the exact same behavior. But if you use a dynamic view,

cleartool lspriv -co -s

is probably much faster than

cleartool lsco -r -cview

And if the former isn't what you want, maybe you can set up a filter script around it to fit your needs.

aschepler
  • 70,891
  • 9
  • 107
  • 161
3

From the technote "Recursively checkout and checkin elements":

It is recommended that if performance is degraded due to this recursive operation that either the operation be changed (say to checkout/checkin in smaller chunks) or to stop the operation all together.

In other words, the recursive nature of lsco (and associated commands) doesn't scale well.
As opposed to the GUI, which might very well launch several request per main directories involved.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Any ideas if it would be possible to mimic 'launch[ing] several request[s]' on the command line? – Tim Visher Nov 11 '11 at 18:59
  • 1
    @Tim: without considering directly Emacs itself, I would try to wrap the `lsco` in a script which would list all directories, and for each one call an `lsco -nrec` (non recursive), to see if that process is quicker than one giant recursive `lsco`. – VonC Nov 11 '11 at 19:03
  • Worked through that. It is considerably faster, but still no where even close to the GUI. Oh well. :) – Tim Visher Nov 11 '11 at 21:07