Change by Mark Shannon :
--
pull_requests: +29523
pull_request: https://github.com/python/cpython/pull/31373
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
New changeset d4e4ef107a9fea257981d7701f023177b704a44f by Mark Shannon in
branch '3.10':
[3.10] bpo-46724: Use `JUMP_ABSOLUTE` for all backward jumps. (GH-31326)
(GH-31354)
https://github.com/python/cpython/commit/d4e4ef107a9fea257981d7701f023177b704a44f
Change by Mark Shannon :
--
keywords: +patch
pull_requests: +29519
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31369
___
Python tracker
<https://bugs.python.org/issu
New submission from Mark Shannon :
This is getting really annoying.
It takes longer to fix all the heavily coupled and poorly written tests in
test_dis than to make the real changes.
Tiny changes in the calling sequence, or reordering CFGs, cause huge diffs in
the test_dis module.
No one
Change by Mark Shannon :
--
pull_requests: +29503
pull_request: https://github.com/python/cpython/pull/31354
___
Python tracker
<https://bugs.python.org/issue46
Change by Mark Shannon :
--
pull_requests: +29501
pull_request: https://github.com/python/cpython/pull/31352
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
New changeset 3be1a443ca8e7d4ba85f95b78df5c4122cae9ede by Mark Shannon in
branch 'main':
bpo-46724: Use `JUMP_ABSOLUTE` for all backward jumps. (GH-31326)
https://github.com/python/cpython/commit/3be1a443ca8e7d4ba85f95b78df5c4122cae9ede
Change by Mark Shannon :
--
pull_requests: +29482
pull_request: https://github.com/python/cpython/pull/31326
___
Python tracker
<https://bugs.python.org/issue46
Change by Mark Shannon :
--
pull_requests: +29481
pull_request: https://github.com/python/cpython/pull/31324
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
New changeset d7a5aca982def155a9255893cefcc1493c127c9c by Brandt Bucher in
branch 'main':
bpo-45923: Add `RESUME_QUICK` (GH-31244)
https://github.com/python/cpython/commit/d7a5aca982def155a9255893cefcc1493c127c9c
Change by Mark Shannon :
--
pull_requests: +29425
pull_request: https://github.com/python/cpython/pull/31259
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
New changeset 2cea8c29cf975a8ad7d8c3ff19d1e836c2d54707 by Mark Shannon in
branch 'main':
bpo-46532: Reduce number of memory writes to update call_shape.kwnames.
(GH-31231)
https://github.com/python/cpython/commit/2cea8c29cf975a8ad7d8c3ff19d1e836c2d54707
Change by Mark Shannon :
--
pull_requests: +29422
pull_request: https://github.com/python/cpython/pull/31254
___
Python tracker
<https://bugs.python.org/issue46
Change by Mark Shannon :
--
pull_requests: +29420
pull_request: https://github.com/python/cpython/pull/31251
___
Python tracker
<https://bugs.python.org/issue46
Change by Mark Shannon :
--
pull_requests: +29419
pull_request: https://github.com/python/cpython/pull/31250
___
Python tracker
<https://bugs.python.org/issue46
Change by Mark Shannon :
--
pull_requests: +29404
pull_request: https://github.com/python/cpython/pull/31234
___
Python tracker
<https://bugs.python.org/issue46
Change by Mark Shannon :
--
keywords: +patch
pull_requests: +29401
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31231
___
Python tracker
<https://bugs.python.org/issu
Change by Mark Shannon :
--
title: Improve effeciency of PRECALL/CALL instructions -> Improve efficiency of
PRECALL/CALL instructions
___
Python tracker
<https://bugs.python.org/issu
Mark Shannon added the comment:
New changeset f71a69aa9209cf67cc1060051b147d6afa379bba by Mark Shannon in
branch 'main':
bpo-46072: Output stats as markdown with collapsible sections. (GH-31228)
https://github.com/python/cpython/commit/f71a69aa9209cf67cc1060051b147d6afa379bba
Change by Mark Shannon :
--
pull_requests: +29398
pull_request: https://github.com/python/cpython/pull/31228
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
New changeset 25db2b361beb865192a3424830ddcb0ae4b17318 by Mark Shannon in
branch 'main':
bpo-46675: Allow object value arrays and split key dictionaries larger than 16
(GH-31191)
https://github.com/python/cpython/commit
Change by Mark Shannon :
--
pull_requests: +29381
pull_request: https://github.com/python/cpython/pull/31211
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
New changeset 9c979d7afd839abbb080028bdfeb73727e5cf633 by Mark Shannon in
branch 'main':
bpo-46072: Merge dxpairs into py_stats. (GH-31197)
https://github.com/python/cpython/commit/9c979d7afd839abbb080028bdfeb73727e5cf633
Mark Shannon added the comment:
New changeset 4b603f628207b380a8a2f22d7ff5d2dbb0853e2e by Victor Stinner in
branch 'main':
bpo-46670: Remove unused macros in ceval.c (GH-31196)
https://github.com/python/cpython/commit/4b603f628207b380a8a2f22d7ff5d2dbb0853e2e
--
nosy: +Mark.Shannon
Change by Mark Shannon :
--
pull_requests: +29368
pull_request: https://github.com/python/cpython/pull/31197
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
New changeset 062460e8fd54e53c9a1a6f175ef49c9d730851b8 by Mark Shannon in
branch 'main':
bpo-46072: Improve LOAD_METHOD stats (GH-31104)
https://github.com/python/cpython/commit/062460e8fd54e53c9a1a6f175ef49c9d730851b8
Change by Mark Shannon :
--
keywords: +patch
pull_requests: +29367
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31191
___
Python tracker
<https://bugs.python.org/issu
New submission from Mark Shannon :
https://bugs.python.org/issue45340 and
https://github.com/python/cpython/pull/28802 allowed "virtual" object dicts
(see faster-cpython/ideas#72 for full details).
In order for this to work, we need to keep the insertion order on the values.
T
Mark Shannon added the comment:
Qiang Zhang, thanks for fixing this.
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Mark Shannon added the comment:
Can you reproduce this failure with just Python?
If not, with just cryptography and not tox?
--
___
Python tracker
<https://bugs.python.org/issue46
Change by Mark Shannon :
--
pull_requests: +29291
pull_request: https://github.com/python/cpython/pull/31108
___
Python tracker
<https://bugs.python.org/issue46
Change by Mark Shannon :
--
pull_requests: +29288
pull_request: https://github.com/python/cpython/pull/31105
___
Python tracker
<https://bugs.python.org/issue46
Change by Mark Shannon :
--
pull_requests: +29287
pull_request: https://github.com/python/cpython/pull/31104
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
New changeset 674ab66ebdf06f187e193a3d7bde13b71ba0f9af by Dennis Sweeney in
branch 'main':
bpo-45885: Add more stats for COMPARE_OP in specialize.c (GH-31040)
https://github.com/python/cpython/commit/674ab66ebdf06f187e193a3d7bde13b71ba0f9af
Mark Shannon added the comment:
New changeset e0433c1e70254d4d0357a9e14596929a04bdf769 by Brandt Bucher in
branch 'main':
bpo-45773: Remove invalid peephole optimizations (GH-31066)
https://github.com/python/cpython/commit/e0433c1e70254d4d0357a9e14596929a04bdf769
Change by Mark Shannon :
--
pull_requests: +29263
pull_request: https://github.com/python/cpython/pull/31079
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
New changeset 187930f74c44e460ba09c60ba5d9bb4fac543d8f by Mark Shannon in
branch 'main':
bpo-46072: Add some frame stats. (GH-31060)
https://github.com/python/cpython/commit/187930f74c44e460ba09c60ba5d9bb4fac543d8f
Change by Mark Shannon :
--
pull_requests: +29242
pull_request: https://github.com/python/cpython/pull/31060
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
New changeset 48be46ec1f3f8010570165daa1da4bf9961f3a83 by Mark Shannon in
branch 'main':
bpo-46072: Add some object layout and allocation stats (GH-31051)
https://github.com/python/cpython/commit/48be46ec1f3f8010570165daa1da4bf9961f3a83
Change by Mark Shannon :
--
pull_requests: +29233
pull_request: https://github.com/python/cpython/pull/31051
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
# This needs to be C code for this to fail, I'm writing it in Python for
clarity and brevity
class D:
def __get__(self, instance, owner):
del C.d
# There are now no strong references to self
self.whatever # Access to freed memory
Mark Shannon added the comment:
Can you reproduce this in pure Python?
If not, can you produce a minimal reproducer using just NumPy?
If you can't do either, I'm going to have to assume that this is a NumPy or
Pandas bug.
Maybe NumPy or Pandas is accessing CPython internals, but not via
Change by Mark Shannon :
--
pull_requests: +29216
pull_request: https://github.com/python/cpython/pull/31033
___
Python tracker
<https://bugs.python.org/issue46
Change by Mark Shannon :
--
pull_requests: +29209
pull_request: https://github.com/python/cpython/pull/30855
___
Python tracker
<https://bugs.python.org/issue17
Mark Shannon added the comment:
New changeset 90ab138bbdc63763ad825ed6d4821367c09c4015 by Mark Shannon in
branch 'main':
bpo-46072: Add simple stats for Python calls. (GH-30989)
https://github.com/python/cpython/commit/90ab138bbdc63763ad825ed6d4821367c09c4015
Change by Mark Shannon :
--
keywords: +patch
pull_requests: +29169
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30990
___
Python tracker
<https://bugs.python.org/issu
Change by Mark Shannon :
--
pull_requests: +29168
pull_request: https://github.com/python/cpython/pull/30989
___
Python tracker
<https://bugs.python.org/issue46
Mark Shannon added the comment:
New changeset 89fd7c34520aac493a8784a221366ed04452612b by Mark Shannon in
branch 'main':
bpo-46329: Split calls into precall and call instructions. (GH-30855)
https://github.com/python/cpython/commit/89fd7c34520aac493a8784a221366ed04452612b
Mark Shannon added the comment:
It's plenty slow on linux as well.
I like the idea of starting the slower tests first.
The long tail of slow tests is annoying when running `make -j12 test`.
--
nosy: +Mark.Shannon
___
Python tracker
<ht
Mark Shannon added the comment:
Timings for individual instructions are a bit meaningless, as out-of-order
execution and speculation on modern CPUs makes it hard to pin down the timing
of anything.
I did an experiment to double the number of instructions. It slowed things down
by ~10%, so
Mark Shannon added the comment:
New changeset 26b0482393a313e3bda364a35e7417e9db52c1c4 by Christian Heimes in
branch 'main':
bpo-46476: Simplify and fix _PyStaticCode_Dealloc (GH-30965)
https://github.com/python/cpython/commit/26b0482393a313e3bda364a35e7417e9db52c1c4
Mark Shannon added the comment:
Yes, we should expose the tuple of variable names, both in Python and in the
C-API.
Would something like
`PyCodeObject_GetVariableName()` and `PyCodeObject_GetVariableKind()` work?
In the meantime, since you were reading `co_varnames` directly, why not read
Mark Shannon added the comment:
For classmethods, I expect the savings to come from not creating a bound-method
and from better specialization of the following call.
classmethod case:
>>> class C:
... @classmethod
... def m(*args):
... pass
...
>>> C.m
New submission from Mark Shannon :
Calls of the form `x.m(args)` where either `x = X` or x = X()` and X is a
class, and `m` is a classmethod or staticmethod are not currently specialized.
Typically the `x.m()` will translate to:
LOAD_FAST x
LOAD_METHOD "m"
PRECALL_METHOD 0
CAL
Mark Shannon added the comment:
Possibly consider replacing the specializations for `str(arg)` and `tuple(arg)`
with a more general bytecode that can be used for other objects as well.
--
___
Python tracker
<https://bugs.python.org/issue46
New submission from Mark Shannon :
The PRECALL/CALL bytecode pair for calls is new (still in review at time of
writing) and is not as efficient as it could be.
Some possible improvements are:
Transfer refcount of func when making a frame.
NULL call_shape.kwnames after use instead
New submission from Mark Shannon :
New changeset 96bf84d57a7c29544866a6c20231603049de4919 by Dennis Sweeney in
branch 'main':
bpo-46420: Use NOTRACE_DISPATCH() in specialized opcodes (GH-30652)
https://github.com/python/cpython/commit/96bf84d57a7c29544866a6c20231603049de4919
--
nosy
Change by Mark Shannon :
--
keywords: +patch
pull_requests: +29036
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30855
___
Python tracker
<https://bugs.python.org/issu
Mark Shannon added the comment:
New changeset 0367a36fdc36b9c909c4d5acf7cde6ceeec0ba69 by Mark Shannon in
branch 'main':
bpo-43683: Streamline YIELD_VALUE and SEND (GH-30723)
https://github.com/python/cpython/commit/0367a36fdc36b9c909c4d5acf7cde6ceeec0ba69
Mark Shannon added the comment:
> So it's also a threads scheduling issue, no?
No, it isn't. The interpreter checks the eval breaker frequently enough. It
checks on all back edges and on all calls to Python functions.
The test probably needs to be fixed, or extended. It is signals sent f
Mark Shannon added the comment:
Is this a bug?
Signal handling in Python is asynchronous.
https://docs.python.org/3/library/signal.html#execution-of-python-signal-handlers
The example code tests whether the interpreter responds synchronously and
immediately.
If you add `for _in range(1
Mark Shannon added the comment:
Or you can use this branch:
https://github.com/faster-cpython/cpython/tree/dont-fast-to-locals-in-trampoline
--
___
Python tracker
<https://bugs.python.org/issue42
Mark Shannon added the comment:
Yes the PR has all the changes.
It is just the changes sysmodule.c that you need:
https://github.com/python/cpython/pull/23028/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb
Mark Shannon added the comment:
While the various frame and debugger PEPs that are open offer a better solution
to this, they might not be accepted for 3.11.
So I'd like to revisit this.
Removing the calls to `PyFrame_FastToLocals` and friends cuts the overhead of
tracing down a lot
Change by Mark Shannon :
--
pull_requests: +28914
pull_request: https://github.com/python/cpython/pull/30723
___
Python tracker
<https://bugs.python.org/issue43
Change by Mark Shannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Mark Shannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Mark Shannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Mark Shannon added the comment:
New changeset b04dfbbe4bd7071d46c8688c2263726ea31d33cd by Mark Shannon in
branch 'main':
bpo-46409: Make generators in bytecode (GH-30633)
https://github.com/python/cpython/commit/b04dfbbe4bd7071d46c8688c2263726ea31d33cd
Mark Shannon added the comment:
New changeset c118c2455c95baea08045dc64963600b7a56b6fd by zq1997 in branch
'main':
bpo-46161: Fix bug in starunpack_helper in compile.c (GH-30235)
https://github.com/python/cpython/commit/c118c2455c95baea08045dc64963600b7a56b6fd
Mark Shannon added the comment:
New changeset a4bc2218d270c4c7a898c8b3967c8c271afe9abe by Kumar Aditya in
branch 'main':
bpo-46405: fix msvc compiler warnings (GH-30627)
https://github.com/python/cpython/commit/a4bc2218d270c4c7a898c8b3967c8c271afe9abe
Change by Mark Shannon :
--
priority: normal -> release blocker
___
Python tracker
<https://bugs.python.org/issue46374>
___
___
Python-bugs-list mai
Change by Mark Shannon :
--
assignee: -> Mark.Shannon
___
Python tracker
<https://bugs.python.org/issue46389>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Mark Shannon :
--
keywords: +patch
pull_requests: +28836
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30633
___
Python tracker
<https://bugs.python.org/issu
New submission from Mark Shannon :
(including coroutines, and async generators)
We now make the start and resumption of Python functions explicit in the
bytecode which allows us to initialize frames in the bytecode without exposing
incomplete frames tracing, the GC etc.
However, we still
Mark Shannon added the comment:
This has the same root cause as https://bugs.python.org/issue46374:
closing the unused generator expression exposes the generator's frame before it
has been initialized.
--
___
Python tracker
<ht
Change by Mark Shannon :
--
assignee: -> Mark.Shannon
keywords: +patch
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue46331>
___
__
Mark Shannon added the comment:
I can reproduce this on linux.
The problem is that when closing a generator that has not started, the frame
may not be in a valid state (hence the assertion failure).
This should be fixed by implementing
https://github.com/faster-cpython/ideas/discussions
Mark Shannon added the comment:
With https://bugs.python.org/issue45963 both frame objects and generators
contain space for the frame, so no allocation occurs on exit.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -&g
Mark Shannon added the comment:
The news item was added in PR 30515
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Mark Shannon :
--
assignee: Mark.Shannon ->
keywords: -patch
stage: resolved ->
___
Python tracker
<https://bugs.python.org/issue46331>
___
___
Mark Shannon added the comment:
Are there any C programming guides we can link to, that explain API use?
I would hope that competent C programmers would know not to read or write to
undocumented fields. But if they come from a Python background, that might not
be obvious.
If the advice
Mark Shannon added the comment:
f_lineno is not part of the API. No field in PyFrameObject is.
I don't know how we can stop people from using them though.
If they don't know better than pulling data out of undocumented internal
struct, then I'm not sure an underscore prefix is going to help
Change by Mark Shannon :
--
nosy: +iritkatriel
___
Python tracker
<https://bugs.python.org/issue46344>
___
___
Python-bugs-list mailing list
Unsubscribe:
Mark Shannon added the comment:
Ned, does this fix work for you?
--
status: pending -> open
___
Python tracker
<https://bugs.python.org/issue46331>
___
___
Py
Mark Shannon added the comment:
New changeset bd04fac7eb929cd11ab6985deb61d9780447fbff by Mark Shannon in
branch 'main':
bpo-46331: Do not set line number of instruction storing doc-string. (GH-30518)
https://github.com/python/cpython/commit/bd04fac7eb929cd11ab6985deb61d9780447fbff
Change by Mark Shannon :
--
assignee: -> Mark.Shannon
___
Python tracker
<https://bugs.python.org/issue46331>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Mark Shannon :
--
keywords: +patch
pull_requests: +28720
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30518
___
Python tracker
<https://bugs.python.org/issu
New submission from Mark Shannon :
Most calls (not those with *args and/or **kwargs) are compiled to the
`CALL_NO_KW` and `CALL_KW` instructions, possibly with a `PRECALL_METHOD`
prefix.
We want to unify the `CALL_NO_KW` and `CALL_KW` instructions into a single
`CALL` instruction and add
Change by Mark Shannon :
--
keywords: +patch
pull_requests: +28718
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30515
___
Python tracker
<https://bugs.python.org/issu
Mark Shannon added the comment:
Ok, I'll add a news item in that case.
--
___
Python tracker
<https://bugs.python.org/issue46314>
___
___
Python-bugs-list mailin
Mark Shannon added the comment:
New changeset ec0c392f34ee2474ceacf66881f05546b540e2d1 by Mark Shannon in
branch 'main':
bpo-46314: Remove extra RESUME when compiling a lamdba. (GH-30513)
https://github.com/python/cpython/commit/ec0c392f34ee2474ceacf66881f05546b540e2d1
Mark Shannon added the comment:
Pablo, I've marked this as a release blocker so this bug doesn't get into
3.11a4.
--
keywords: -patch
nosy: +pablogsal
stage: patch review ->
___
Python tracker
<https://bugs.python.org/issu
Change by Mark Shannon :
--
keywords: +patch
pull_requests: +28716
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30513
___
Python tracker
<https://bugs.python.org/issu
Mark Shannon added the comment:
Thanks, Ned.
--
assignee: -> Mark.Shannon
priority: normal -> release blocker
type: -> behavior
___
Python tracker
<https://bugs.python.or
Change by Mark Shannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Mark Shannon added the comment:
Are you using `f_lasti == -1` as a proxy for "is this an actual call or a
resumption after a yield"?
Ultimately PEP 669 will provide all the information you could need to
differentiate different events.
In the meantime...
We now make all &qu
Mark Shannon added the comment:
New changeset e028ae99ecee671c0e8a3eabb829b5b2acfc4441 by Mark Shannon in
branch 'main':
bpo-45923: Handle call events in bytecode (GH-30364)
https://github.com/python/cpython/commit/e028ae99ecee671c0e8a3eabb829b5b2acfc4441
Change by Mark Shannon :
--
nosy: +eric.snow
___
Python tracker
<https://bugs.python.org/issue46166>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Mark Shannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
101 - 200 of 1194 matches
Mail list logo