-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is the step of reading the image so slow after a rebuild? #29
Comments
I've reinstalled this deb on a fresh install of linuxmint-20.1-cinnamon-64bit.iso (see my other finding for the specific picture)
So only 9 seconds
|
I'm now rebuilding the same gamera version as the deb on this new Mint 20.1 x64 image. sudo add-apt-repository universe remove 'const' in the pyramid function above line 771 in include/vigra/imagecontainer.hxx |
And the resulting time is long:
|
Finally, the commit in the debian repository that comes closest to the Python text when I compare the installed apt-package with the installed compiled version is this one: But apart from the needed change in include/vigra/imagecontainer.hxx this commit still is too slow. Much slower than only could depend on the amount of processor-cores in my system. But before I continue on this path I will try building with openmp-support. |
With openmp support the same long time:
|
I don't know what the use is of
in the gamera-submap, but when I remove them even the newer Gamera-4 version only takes seconds. |
@cdalitz Even when I do a full build without |
This is very strange and I cannot reproduce your problem. gamer/init.py only contians two lines that do anything:
Under what circumstances can this last 9 seconds? |
See my second post in this issue for the exact replay, using the original package manager version of Ubuntu 18.04 for Gamera. The used image comes from I've looked up the differences between the source of the package manager version and only found this file to be different, however if I remove it now it doesn't run, so there must be something else. |
I replayed the scenario with Python3.9 and Python3.10 and there was no speed issue. There might be an issue with some reason for reading some Python-sourcefile(s) again and again in older Python-versions, but I'm not skilled enough to investigate that yet. Processmonitor isn't as advanced on Ubuntu as it is on Windows. |
In Python-2.7 I use the standard Ubuntu 18.04 deb of python-gamera:
python-gamera_3.4.2+git20160808.1725654-2_amd64.deb
When I rebuild gamera with option nowx in Mint 20.2 it is reading images much slower. Same with gamera-4.
Has the deb been built with an optimization I don't know of or is 3.4.4 slower than 3.4.2 reading images?
The read-step is done from didjvu: 2 minute 45.
The text was updated successfully, but these errors were encountered: