GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Generic.__new__ is too slow · Issue #196 · python/typing

Generic.__new__ is too slow #196

New issue
Copy link
New issue
Copy link
Closed
Closed
Generic.__new__ is too slow#196
Copy link

Description

@gvanrossum
gvanrossum
opened on Apr 1, 2016
Issue body actions

We shouldn't need to slow down the construction of instances of a generic type.

Probably GenericMeta can pre-compute next_in_mro and then just set __new__ of the class to that.

(Though fixing #192 would make this a little more complicated.)

Activity

  1. gvanrossum
    added 3 commits that reference this issue on Apr 2, 2016

    Backport fix for #192 to Python 2. Remove optimistic TODO about #196.

    37a3dd5

    Backport fix for #192 to Python 2. Remove optimistic TODO about #196.

    baf2d91

    Improve speed of Generic.__new__. Both PY2 and PY3. Fixes #196.

    e0d1c5d
  2. gvanrossum
    closed this as completedin e0d1c5don Apr 4, 2016
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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.