Skip to content

Cache the outcome of e.g. List[T] #130

Closed

Description

@gvanrossum

Instances of e.g. List[T] each time this occurs in an expression ought to be cached to reduce memory consumption. Mark Shannon believes this is really important. I propose we can improve this after the beta-1 release.

Activity

  1. gvanrossum commented on Apr 5, 2016

    @gvanrossum
    MemberAuthor

    I propose not to do this. The PEP now forbids e.g. Node[int]() and recommends using an alias, e.g.

    IntNode = Node[int]
    x = IntNode()
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions