Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

1.0.6 halved max recursion depth on Windows #566

Copy link
Copy link
Closed
@crusaderky

Description

@crusaderky
Issue body actions

The maximum recursion depth on Windows has dropped from 512 levels to 256 from version 1.0.5 to 1.0.6:

All packages from conda, running on github CI:

```python
import sys
import msgpack

for i in range(200, 5000):
    root = outer = {}
    inner = {}

    for _ in range(i):
        outer["children"] = inner
        outer, inner = inner, {}

    try:
        msgpack.dumps(root)
    except ValueError:
        print(
            f"msgpack {msgpack.__version__} on Python "
            f"{sys.version.split()[0]}/{sys.platform} raises at {i}"
        )
        break

Output:

msgpack 1.0.5 on Python 3.9.18/linux raises at 512
msgpack 1.0.5 on Python 3.10.12/linux raises at 512
msgpack 1.0.5 on Python 3.11.5/linux raises at 512

msgpack 1.0.5 on Python 3.9.18/win32 raises at 512
msgpack 1.0.5 on Python 3.10.12/win32 raises at 512
msgpack 1.0.5 on Python 3.11.5/win32 raises at 512

msgpack 1.0.6 on Python 3.9.18/linux raises at 512
msgpack 1.0.6 on Python 3.10.12/linux raises at 512
msgpack 1.0.6 on Python 3.11.5/linux raises at 512

msgpack 1.0.6 on Python 3.9.18/win32 raises at 256
msgpack 1.0.6 on Python 3.10.12/win32 raises at 256
msgpack 1.0.6 on Python 3.11.5/win32 raises at 256

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.