Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

Re: ndPython: I NEED TO TALK WITH ONE OF THE PYTHON CORE

 

 

Python dev RSS feed   Index | Next | Previous | View Threaded


fbattaglia at alice

Jun 26, 2009, 8:45 AM

Post #1 of 3 (455 views)
Permalink
Re: 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



_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


tjreedy at udel

Jun 26, 2009, 1:25 PM

Post #2 of 3 (427 views)
Permalink
Re: ndPython: I NEED TO TALK WITH ONE OF THE PYTHON CORE [In reply to]

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

_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


asmodai at in-nomine

Jun 29, 2009, 2:54 AM

Post #3 of 3 (398 views)
Permalink
Re: ndPython: I NEED TO TALK WITH ONE OF THE PYTHON CORE [In reply to]

-On [20090626 22:29], Terry Reedy (tjreedy [at] udel) 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...
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.