Re: [Python-Dev] ndPython: I NEED TO TALK WITH ONE OF THE PYTHON CORE

Thanks for your answers. Sorry for the title in upper case. I didn't want to create troubles. :) I've an important question for you: is it possible that a large python module, created using SWIG and with a hundred of routines, makes slower the execution (i.e. the job of ceval.c) of the Python interpreter ? We've observed that, if we don't import ndpsp.pyc at startup, the time of execution of a loop containing the pass instruction becomes near normal. How Python recalls the C functions in a C wrapper ? Thanks for your very important help. Filippo Battaglia

Filippo Battaglia wrote:
Thanks for your answers. Sorry for the title in upper case. I didn't want to create troubles. :)
I've an important question for you: is it possible that a large python module, created using SWIG and with a hundred of routines, makes slower the execution (i.e. the job of ceval.c) of the Python interpreter ?
If you were running on a PC with what is now considered to be very small memory, I would hypothesize that you had filled memory so that the interpreter or parts thereof were being swapped in and out of memory from and to disk. Is any thing like that possible with the PSP? Next, I would wonder whether any module, as part of its initialization, was doing anything 'unusual' with respect to its interaction with the interpreter.
We've observed that, if we don't import ndpsp.pyc at startup, the time of execution of a loop containing the pass instruction becomes near normal.
What happens if you divide the imported stuff in half? Do both halves slow it down? Neither? Just one? The answer to that would be a start to answering whether the specific problem is quantitative or qualitative. Terry Jan Reedy

-On [20090626 22:29], Terry Reedy (tjreedy@udel.edu) wrote:
If you were running on a PC with what is now considered to be very small memory, I would hypothesize that you had filled memory so that the interpreter or parts thereof were being swapped in and out of memory from and to disk. Is any thing like that possible with the PSP?
From what I know it has either 32 or 64 MB of RAM, depending on the model. The storage comes in the form of a Memory Stick PRO Duo, but I doubt it is used in any form as a paging or swap file. At least playing on my own it only accesses it when I want to save game data.
-- Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B Friendship is love without wings...
participants (3)
-
Filippo Battaglia
-
Jeroen Ruigrok van der Werven
-
Terry Reedy