TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Decorating: Animated pulsed for your slow functions in Python

3 pointsby leraxabout 9 years ago

1 comment

rahielabout 9 years ago
That&#x27;s a cool project, nice job!<p>The pulse looks useful for functions that take seconds, if it takes minutes something like tqdm [1] that gives an estimate on how long it takes seems more appropriate.<p>And your cache decorator is also available in the standard library as functools.lru_cache. [2] That one is implemented in C so it should be faster. [3]<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;tqdm&#x2F;tqdm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tqdm&#x2F;tqdm</a><p>[2]: <a href="https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;functools.html#functools.lru_cache" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;functools.html#functools.l...</a><p>[3]: <a href="https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;whatsnew&#x2F;3.5.html#functools" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;whatsnew&#x2F;3.5.html#functools</a>