From: David Kågedal Date: Thu, 13 Dec 2007 16:08:55 GMT Subject: Re: [StGit RFC] Make "stg branch -l" faster by getting all git config information in one call Message-ID: <87bq8ur2zs.fsf@lysator.liu.se> In-Reply-To: "Catalin Marinas" 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