[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-06-02 Thread MrValdez


MrValdez  added the comment:

I couldn't replicate since my old dev machine didn't have rubenvb.

Since this issue has been around for 5 years already, rubenvb isn't maintained 
and I couldn't replicate, I think its fine to close this issue.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-04-13 Thread MrValdez


MrValdez  added the comment:

Its a shame the link is now gone. Its also been a long time that I don't 
remember all the details.

I still have my code from back when I found this bug. I can try to replicate it.

> We don't support compilers other than MSVC on Windows
> [...]
> rubenvb is not maintained.

I don't remember why I used rubenvb back then. I'll see if I can get MSVC 
working. Maybe this is the cause for the slow down.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-04-13 Thread STINNER Victor


STINNER Victor  added the comment:

In case of doubt, I suggest to close the issue. If the issue strikes back,
it is trivial to reopen the issue or open a new one.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-04-13 Thread Inada Naoki


Inada Naoki  added the comment:

* rubenvb is not maintained.
* https://forums.embarcadero.com/message.jspa?messageID=581594 is dead link.
* When PY_SSIZE_T is not defined, we use intptr_t, not int.

Original issue report doesn't make sense to me.
But we can't confirm it for now.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-04-12 Thread Steve Dower


Steve Dower  added the comment:

Never heard of it, but perhaps there are some preprocessor checks for Windows 
that assume you are using MSVC and not gcc?

We don't support compilers other than MSVC on Windows, but if someone has a fix 
for this I'm happy to consider it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-04-12 Thread STINNER Victor


STINNER Victor  added the comment:

Steve: Are you aware of this issue? "Apparently, you need to add this to your C 
program: #define HAVE_SSIZE_T"

--
nosy: +steve.dower

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-04-12 Thread Inada Naoki


Inada Naoki  added the comment:

Is this issue still alive?
May I close this issue as "out of date"?

--
nosy: +inada.naoki

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-03-15 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2015-03-22 Thread Mark Lawrence

Mark Lawrence added the comment:

Who is best placed to address this issue?

--
components: +Build, Extension Modules -Windows
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21110
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2014-03-31 Thread MrValdez

New submission from MrValdez:

The example in the Extending Embedded Python 
(https://docs.python.org/3/extending/embedding.html#extending-embedded-python) 
takes up a lot of memory and slow downs the computer. I am using Windows 7 
64bit, Python 3.4 64bit and gcc (rubenvb-4.8.0) 4.8.0.

Solution:

Apparently, you need to add this to your C program:

#define HAVE_SSIZE_T

I found the solution at 
(https://forums.embarcadero.com/message.jspa?messageID=581594). The page said 
that when adding the above, this ensures that the type Py_ssize_t becomes 
__int64 instead of int.


Expected: 

The programmer should not see a simple program (that came from the main 
documentation, no less) causing slowdowns and high memory usage. The 64bit 
version of the Python installer was downloaded so the programmer should, at 
least, not need to know that they need this flag. 

Can the Python.h in the 64 bit builds automatically set the flag? Or, if this 
isn't feasible, add a note to the documentation that this flag exist.

--
components: Windows
messages: 215227
nosy: MrValdez
priority: normal
severity: normal
status: open
title: Slowdown and high memory usage when adding a new module in embedded 
Python 3.4 on 64bit Windows
type: performance
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21110
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2014-03-31 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21110
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com