Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Reduce the number of materialized instance__dict__s #106485

Closed
Labels
performancePerformance or resource usage
@markshannon

Description

@markshannon

Accessing the__dict__ attribute of an object causes the dictionary to be materialized.
This has a negative impact on performance.
We should provide means to access the__dict__ without forcing materialization, which can be used in copy, pickle and any third party code that chooses to.

I propose two new methods onobject:

  • __dict_copy__(self), which will be equivalent toself.__dict__.copy(), but without materializing the dictionary of objects with virtual dictionaries.
  • __dict_update__(self, arg), which will be equivalent toself.__dict__.update(arg), but without materializing the dictionary of objects with virtual dictionaries.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp