Giter Site home page Giter Site logo

postcss-rs's Introduction

postcss-rs

๐Ÿš€ Fast and 100% API compatible postcss replacer, built in Rust

โš ๏ธ DO NOT USE. STILL WORK IN PROGRESS.

Performance Improvement

Tokenize bootstrap.css (Compare with postcss.js):

rust: 0.00s user 0.00s system  71% cpu 0.007 total
js:   0.13s user 0.02s system 126% cpu 0.109 total

# tokenize bootstrap-reboot.css ~18x
js:   tokenizer/small(7K)       : 2.274ms
rust: tokenizer/small(7K)       : 0.120ms

# tokenize bootstrap.css ~14x
js:   tokenizer/small(201K)     : 31.367ms
rust: tokenizer/small(201K)     :  2.158ms

๐ŸŽ‰ Welcome contribute, here is a guide:

git checkout main
cargo bench -- --save-baseline main

Create a baseline, Then do some optimization work here.

git checkout feature  ## `feature` is your branch 

Compare against the main baseline.

cargo bench -- --baseline main

postcss-rs's People

Contributors

justjavac avatar iwanabethatguy avatar cgqaq avatar herringtondarkholme avatar edsion11 avatar

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.