Giter Site home page Giter Site logo

New kid on the block about bustache HOT 4 CLOSED

jamboree avatar jamboree commented on May 28, 2024
New kid on the block

from bustache.

Comments (4)

jamboree avatar jamboree commented on May 28, 2024

Looks interesting 😎. I observed 3x~4x difference between bustache & tinja on my machine.

from bustache.

mincequi avatar mincequi commented on May 28, 2024

Nice to hear. Hopefully, difference means tinja is also faster on your machine?
Maybe, i will find the time to implement the full mustache spec, but as of now, this is sufficient for my purposes.
I also wanted to keep my impl small (200 lines of code).

from bustache.

jamboree avatar jamboree commented on May 28, 2024

Nice to hear. Hopefully, difference means tinja is also faster on your machine?

Yep.

BTW, in case you didn't know, you could feed your tinja::DataMap to bustache::format, you only need to implement some traits for tinja::StringRef, also, I'm curious why it's not std::string_view but std::reference_wrapper<const String>. I guess you want to avoid the ambiguity in Data variant constructor?

from bustache.

mincequi avatar mincequi commented on May 28, 2024

Yep, i am aware that i could use tinja::DataMap to bustache. I also tried to use your native data implementation. However, i did not succeed yet and i simply took the nlohmann adapter, because i was using that anyway for another template engine.

I did some performance comparions with std::string_view and std::reference_wrapper<const String> and discovered, that the latter is even more performant than std::string_view. Avoiding the ambiguity had been a nice side-effect. :)

from bustache.

Related Issues (20)

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.