GithubHelp home page GithubHelp logo

Import times are SLOW about blik HOT 3 CLOSED

brisvag avatar brisvag commented on June 10, 2024
Import times are SLOW

from blik.

Comments (3)

alisterburt avatar alisterburt commented on June 10, 2024

from blik.

brisvag avatar brisvag commented on June 10, 2024

I guess you're right... I tried to do some profiling a few weeks back, but maybe I misunderstood the causes.
If some dependencies are already imported (especially napari) things are faster

In [1]: %time import numpy
CPU times: user 103 ms, sys: 9.95 ms, total: 113 ms
Wall time: 112 ms

In [2]: %time import pandas
CPU times: user 231 ms, sys: 53.5 ms, total: 284 ms
Wall time: 284 ms

In [3]: %time import napari
CPU times: user 1.21 s, sys: 96.4 ms, total: 1.3 s
Wall time: 1.31 s

In [4]: %time import peepingtom
CPU times: user 400 ms, sys: 43.3 ms, total: 443 ms
Wall time: 443 ms

as opposde to:

In [1]: %time import peepingtom
CPU times: user 1.69 s, sys: 203 ms, total: 1.89 s
Wall time: 1.9 s

Still, I'm sure there are wayt to lazyfying some of these imports.

from blik.

brisvag avatar brisvag commented on June 10, 2024

I think we can consider this closed by #113 .

from blik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.