This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Zhipeng Xie
Recipients Zhipeng Xie
Date 2019-12-28.09:20:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577524829.3.0.724432739165.issue39146@roundup.psfhosted.org>
In-reply-to
Content
when running the following script, we found python2 comsume a lot memory while python3 does not have the issue.

import re
import time
NON_PRINTABLE = re.compile(u'[^\U00010000-\U0010ffff]')
time.sleep( 30 )

python2:
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                            
 6943 root      20   0  109956  93436   3956 S   0.0   1.2   0:00.30 python

python3:
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                            
 6952 root      20   0   28032   8880   4868 S   0.0   0.1   0:00.02 python3
History
Date User Action Args
2019-12-28 09:20:29Zhipeng Xiesetrecipients: + Zhipeng Xie
2019-12-28 09:20:29Zhipeng Xiesetmessageid: <1577524829.3.0.724432739165.issue39146@roundup.psfhosted.org>
2019-12-28 09:20:29Zhipeng Xielinkissue39146 messages
2019-12-28 09:20:29Zhipeng Xiecreate