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

Alexandre Detiste alexandre.detiste at gmail.com
Fri Mar 6 15:13:36 UTC 2015


Package: game-data-packager
Version: 39
Severity: minor

Dear Maintainer,

When a user ask GDP to package some game,
GDP will read _all_ yaml files.

As the number of supported games rises,
it gets worse.

Running GDP without any argument also takes a very long time;
users may think it has hanged.

--

pi at raspberrypi ~/game-data-packager $ time ./run > /dev/null
real    0m25.045s
user    0m24.950s
sys     0m0.080s

pi at raspberrypi ~/game-data-packager $ time ./run spear
INFO:game-data-packager:downloading http://localhost/sodemo.zip
generated "/home/pi/game-data-packager/spear-of-destiny-demo-data_40_all.deb"
it is recommended to also install this game engine: wolf4sdl
real    0m29.888s
user    0m29.360s
sys     0m0.300s

pi at raspberrypi ~/game-data-packager $ rm out/*.yaml
pi at raspberrypi ~/game-data-packager $ cp data/spear-of-destiny.yaml out/
pi at raspberrypi ~/game-data-packager $ time ./run spear
INFO:game-data-packager:downloading http://localhost/destiny.zip
generated "/home/pi/game-data-packager/spear-of-destiny-demo-data_40_all.deb"
it is recommended to also install this game engine: wolf4sdl
real    0m6.091s
user    0m5.560s
sys     0m0.310s


-- System Information:
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 8.0 (jessie)
Release:	8.0
Codename:	jessie
Architecture: armv7l

Kernel: Linux 3.18.7-v7+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Pkg-games-devel mailing list