Bug#779937: GDP shouldn't process all yaml files all the time

Simon McVittie smcv at debian.org
Fri Mar 6 18:09:36 UTC 2015


On 06/03/15 15:13, Alexandre Detiste wrote:
> Running GDP without any argument also takes a very long time;
> users may think it has hanged.
> 
> pi at raspberrypi ~/game-data-packager $

To be fair, judging by your shell prompt, you're running it on the I/O
coprocessor of a slightly outdated video decoder (the video core is the
main purpose of the RPi's SoC - the ARM core that can run Linux is an
afterthought). It's rather faster on my laptop :-) However, I do see
your point.

The problem is that if we want to use argparse's built-in support for
"subcommands", then we have to build the argument parsers for all
supported subcommands before we can parse anything.

Perhaps if we profiled what takes all the time, we'd be able to avoid it
- e.g. by "compiling" the parts of the YAML files that are actually
needed for the argument parser into a pickle file or something, and
loading the rest lazily.

    S



More information about the Pkg-games-devel mailing list