Lucifier129 / react-lite

An implementation of React v15.x that optimizes for small script size
MIT License
1.73k stars 98 forks source link

filesize clarification #26

Closed NickColley closed 8 years ago

NickColley commented 8 years ago

Neat project!

Is the filesize in the readme after compression + gzip? could you clarify that and potentially compare directly with vanilla React?

Thanks!

Lucifier129 commented 8 years ago

It sounds good.

Added framework-size-comparison part to README, see it with this link: https://github.com/Lucifier129/react-lite#framework-size-comparison

fritx commented 8 years ago

:+1:

NickColley commented 8 years ago

Thanks so much @Lucifier129, can I be a real pain and ask is that with gzip? It says minified but I'm not sure?

I'd have two columns: minified and minfied+gzip

The minified gives you an idea of how much code needs to be parsed then executed once it's unpacked, the minfied + gzip gives you an idea of how long it'll take to get to your user.

You could use something like https://github.com/sindresorhus/gzip-size + https://github.com/sindresorhus/pretty-bytes

Related thoughts: https://aerotwist.com/blog/the-cost-of-frameworks/

Thanks again for your patience :+1:

Lucifier129 commented 8 years ago

@nickcolley I think minified size was enough to show how lightweight about react-lite.

Even without gzip, react-lite is smaller than many other library with gzip, LOL

tejacques commented 8 years ago

@nickcolley if it wasn't clear, looking at https://github.com/Lucifier129/react-lite/tree/master/dist clarifies it's the size without gzip. It's 6.47kb with gzip.