question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Importing humanize is slow

See original GitHub issue

I have noticed that importing humanize noticeably increases the startup time of my CLI. After doing some importtime analysis, I think the underlying problem is that importing pkg_resources is slow.

Is is it possible to replace the usage of pkg_resources.get_distribution in __init__.py with something that isn’t as expensive to import?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
ashwin153commented, Oct 7, 2021

It is not good enough to consider constant but it is 3 times faster than it was before, which is why I closed this. Happy to reopen if you think that there is more to be done.

1reaction
ashwin153commented, Oct 6, 2021

Closed by #227.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is slowing down the dev process ? A data-driven approach
Let's get an idea of overall duration import numpy as np import humanize all_case_durations = pm4py.get_all_case_durations(filtered_log) ...
Read more >
humanize-plus - npm
Start using humanize-plus in your project by running `npm i humanize-plus`. ... Very useful for slow paces. second = 1000. week = 6.048e8....
Read more >
Humanize settings | VI-CONTROL
For my current project I'm importing the midi from Sibelius into Logic ... various results - for example the "Slow Strings" reference events ......
Read more >
Performance problem with python elementTree XML parser
I have a memory problem with parsing the large XML file. The file looks like (just first few rows): <?xml version="1.0" encoding=" ...
Read more >
Slow upload : Customer Support - Hippo Video
Time taken to upload a video might vary a bit depending on the file size, Internet bandwidth, and system usage. To fix the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found