Skip to content

it takes 2.3 seconds to import the package #104

Closed as not planned
Closed as not planned

Description

@ohad-alike

Hi,
It takes a very long time to load the sdk.
Are there any imports which can wait for the time they will be used?

Activity

  1. gdj0nes commented on Dec 19, 2022

    @gdj0nes
    Contributor

    @ohad-alike thanks for reporting! we weren't able to reproduce this. Are you still seeing this issue? Sorry for the delayed response.

  2. ohad-alike commented on Dec 22, 2022

    @ohad-alike
    Author

    Yes,
    % time python -c "import pinecone"
    python -c "import pinecone" 0.23s user 0.10s system 22% cpu 1.479 total

  3. ohad-alike commented on Dec 22, 2022

    @ohad-alike
    Author

    from time import time
    start = time()
    import pinecone
    print(f"time for import: {time()-start}")

    time for import: 1.6446847915649414

  4. micahjsmith commented on Aug 10, 2023

    @micahjsmith

    this is obviously related to #189

  5. added 4 commits that reference this issue on Sep 22, 2026
    20d7104
    9e60332
    55e5fee
    7c34548
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions