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.

can castero be faster?

See original GitHub issue

i start use and review castero i fell castero startup is slow ( i know that is python program) i add only one feed only ( i am not test more feed can affect that) that is output of time for ranger and castero

➜  ~ time ranger
ranger  0.47s user 0.02s system 47% cpu 1.027 total
➜  ~ time ranger
ranger  0.47s user 0.02s system 43% cpu 1.124 total
➜  ~ time ranger
ranger  0.45s user 0.04s system 45% cpu 1.059 total
➜  ~ time castero 
castero  0.80s user 0.46s system 64% cpu 1.946 total
➜  ~ time castero
castero  0.82s user 0.42s system 59% cpu 2.082 total
➜  ~ time castero
castero  0.81s user 0.44s system 38% cpu 3.215 total

if reading from disk make castero slower ranger has more config file. startup and cpu usage is so high. i think ranger is slow to but feature couldn’t found any where (image preview) which part of code could make castero slow? have a podcast player in terminal is so awesome and thanks for your program so much.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
xgicommented, Jan 21, 2020

@hebecked I updated castero with #86 which reduces the latency in (mostly) the way I described above. The only difference is that the episode menu won’t actually be blank temporarily, it will instead temporarily keep the contents of what was previously loaded. Regardless, the client should be much faster now.

I also noticed that the default footer message (which said like “Loaded x feeds with y episodes”) was making some pretty heavy database requests, so I’ve simply removed it for now. I might add it back somewhere else (like the help menu) but I don’t think it’s a big deal.

I also also noticed while importing your list that the UX for importing wasn’t very good for large OPMLs. So I created #87 which lists each feed as it’s added, or any errors. There might be some more improvements to make (like optionally skipping feeds which already exist) but this is much better than the screen being blank for 20 minutes.

I’m going to close this issue now since I think there were some significant performance improvements. If anyone has additional performance concerns (especially specific ones), feel free to make another issue.

Thanks!

0reactions
hebeckedcommented, Jan 11, 2020

@xgi Thanks so much for the quick response and your willingness to fix this. Here the file I used. .opml ist not supported though, so I changed the file ending to .txt.

PodcastAddict_export_20200111_145250.txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use Castor Oil for Hair (Grow Beautiful Hair Fast)
Castor oil can be used on the scalp to help prevent and remedy hair loss and it is effective at this for several...
Read more >
4 Benefits and Uses of Castor Oil - Healthline
Several studies have shown that castor oil can relieve constipation. ... While castor oil is considered safe in small doses, larger amounts can...
Read more >
Castor Oil for Hair in 2022: The Benefits, Risks, and How to Use
Tbh, no topical product alone can make your hair grow faster or prevent hair loss—only your hormones, genetics, health, and age can do...
Read more >
Castor Oil Oral: Uses, Side Effects, Interactions ... - WebMD
You may take this medication with juice to improve the taste. Dosage is based on your age, medical condition, and response to treatment....
Read more >
Castero - TUI podcast client for the terminal - GitHub
After installing castero, it can be run with simply: $ castero. The help menu provides a list of controls and can be accessed...
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