Comments (3)
Hey @acxz that's cool thanks :)
That's weird about the speeds. I did some testing again with your script and I get that krabby is indeed about 1.3x slower than pokemon-colorscripts when printing a specific pokemon and only a tiny bit faster when printing random pokemon. I can't reproduce your results with pokeget however. Do you need enable the caching somehow?
Now I wonder how I ever got the 7x number :D Maybe I compared it to the python version instead by mistake somehow.
I will update my README to reflect this.
from krabby.
Do you need enable the caching somehow?
Yes I did enable caching (by editing the ~/.config/pokeget/pokeget.conf file) it is not default behavior.
Thank you for testing it out and being honest.
Yea, I did feel like a speed up from a compiled program for this task was a bit fishy, but I'm glad you created this project and gave us the data point for it.
For simple tasks like these, shell is gonna be really hard to beat. Of course, maybe when you add a lot of features/have a larger codepath (like in pokeshell) a compiled program is most likely gonna be better.
If you do want to try another pass at getting something faster take a look at oil. It's supposed to be a shell lang that is a more modern take. idk if ur interested or not, but thought I'd mention it. It may not even be faster than bash, as it does have more overhead than bash I believe.
from krabby.
btw feel free to send PRs to that table, when u incorporate more features/add improvements
from krabby.
Related Issues (10)
- Add shell completions
- Development PKGBUILD HOT 3
- possibility to pipe to neofetch? HOT 4
- Add generation 9 pokemon
- nix build rust package need cargo.lock files
- Add option for padding HOT 1
- Add `--shiny` flag to `random` subcommand HOT 1
- Terminal color changes to black HOT 3
- Option to hide Pokémon's name HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from krabby.