Git Product home page Git Product logo

Comments (3)

yannjor avatar yannjor commented on August 26, 2024

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.

acxz avatar acxz commented on August 26, 2024

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.

acxz avatar acxz commented on August 26, 2024

btw feel free to send PRs to that table, when u incorporate more features/add improvements

from krabby.

Related Issues (10)

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.