shama / yo-yoify

Transform choo, yo-yo or bel template strings into pure and fast document calls
111 stars 17 forks source link

theoretical question regarding size #8

Closed SilentCicero closed 8 years ago

SilentCicero commented 8 years ago

Just a theoretical question here:

Thesis: yo-yoifying could actually make the app bigger vs just requiring yo dependencies.

We could assume hundreds of elements worth of transforming. This could actually end up adding size in the end. While it does make it browser friendly, it may increase size quite a bit.

Thoughts?

shama commented 8 years ago

Some parts of the transform could call a global injected function for common parts to reduce the file size. Performance and compatibility are more important IMO, so I'm not too worried about the file size atm. gzip is your friend.

SilentCicero commented 8 years ago

@shama yeah I suppose. For my use case compatibility is less an issue, more performance and total download size. Yes, gz is my friend.