Re: [StGit RFC] Make "stg branch -l" faster by getting all git config information in one call
- From
David Kågedal <davidk@lysator.liu.se>
- Date
- Dec 13, 2007, 16:08 UTC
- Message-ID
- <87bq8ur2zs.fsf@lysator.liu.se>
- In-Reply-To
- <b0943d9e0712130738s18ad303fu17a8412097377900@mail.gmail.com>
"Catalin Marinas" <catalin.marinas@gmail.com> writes:
> BTW, have you run stg-prof to check where it spends most of the time? > Is it caused by Python object creation or GIT calls invoked during the > Series objects initialisation. If the latter, we can turn some > variables into properties and access them lazily.
I ran with STG_SUBPROCESS_LOG=debug and noticed that there were four invokations of git for each branch it listed, in addition to the ten invokation before it even starts to list the branches.
So I focused on replacing those 4xN invokations with 2 invokations, and it helped a lot. But I'm sure there are still lots of things to improve.
Actually, I didn't know about stg-prof.
-- David Kågedal