Boost logo

Boost Users :

From: Richard Hadsell (hadsell_at_[hidden])
Date: 2004-04-29 18:44:27


Rene Rivera wrote:

> Hmm, I think there's a way around the problem. Since the archive is
> getting recreated each time we can use the much faster "q" (append)
> option instead of the slow "r" (add/replace). Try the general solution
> but using "ar q..." instead if "ar r.."

I recall trying it last time. In fact, I would use it anyway, because
you are always building the archive from scratch, so 'q' should be safe.

However, it still didn't help much. If I get some extra time, I can
make a measurement, but I think I decided that the problem was due to
the overhead of ar opening and closing the library each time, probably
spending some time digesting whatever directory info is there. I also
seem to remember that I would print a line for each append, and it would
slow down drastically as the library grew larger. (It's been a while,
so I won't swear to it.)

-- 
Dick Hadsell			914-259-6320  Fax: 914-259-6499
Reply-to:			hadsell_at_[hidden]
Blue Sky Studios                http://www.blueskystudios.com
44 South Broadway, White Plains, NY 10601

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net