Live data from Hacker News

How I improved our Jade compilation time by 99.7%

paulyoung.tv

1–10 of 13 posts

Re: How I improved our Jade compilation time by 99.7%

#3
> Currently, jade-inheritance depends on its own version of Jade to parse templates. Since jade-inheritance does not offer compilation, this must be done using other tools which may use a different version of Jade.

Why not use the jade that's already installed by the parent app? Due to the way dependencies work in npm, by just removing the jade dependency from jade-inheritance it should just traverse up the directory structure until it finds a jade package. Just instruct users to install jade alongside with jade-inheritance, and instead of using node_modules/jade-inheritance/node_modules/jade, it should use node_modules/jade.

Re: How I improved our Jade compilation time by 99.7%

#4
post #3

> Currently, jade-inheritance depends on its own version of Jade to parse templates. Since jade-inheritance does not offer compilation, this must be done using other tools which may use a different version of Jade. Why not use the jade that's already installed by the parent app? Due to the way dependencies work in npm, by just removing the jade dependency from jade-inheritance it should just traverse up the directory…

Good question.

I had tried this approach and had issues in getting it to work. Particularly, how to specify that jade was still a dependency in package.json. Both regular dependency and peer dependency didn't seem to fit the bill.

A simple proof-of-concept would be to take the built-in binary and have that be it's own package which depends on jade and jade-inheritance.

If you can offer some advice on how to go about this, could you create an issue? https://github.com/paulyoung/jade-inheritance/issues

Thanks!

Re: How I improved our Jade compilation time by 99.7%

#7

FYI - I am getting the following warning on FireFox 22.0 for Ubuntu 12.04: Reported Attack Page! This web page at paulyoung.tv has been reported as an attack page and has been blocked based on your security preferences.

Me too. I'm assuming google cache will be safer: webcache.googleusercontent.com/search?q=cache:http://paulyoung.tv/jade-inheritance

Re: How I improved our Jade compilation time by 99.7%

#8

FYI - I am getting the following warning on FireFox 22.0 for Ubuntu 12.04: Reported Attack Page! This web page at paulyoung.tv has been reported as an attack page and has been blocked based on your security preferences.

Oh wow. Did not know that.

Apparently Firefox uses data from Google SafeBrowsing, which doesn't report anything out of the ordinary.

http://www.google.com/safebrowsing/diagnostic?site=paulyoung...

Re: How I improved our Jade compilation time by 99.7%

#9

FYI - I am getting the following warning on FireFox 22.0 for Ubuntu 12.04: Reported Attack Page! This web page at paulyoung.tv has been reported as an attack page and has been blocked based on your security preferences.

Oh wow. Did not know that. Apparently Firefox uses data from Google SafeBrowsing, which doesn't report anything out of the ordinary. http://www.google.com/safebrowsing/diagnostic?site=paulyoung...

Source: https://support.mozilla.org/en-US/questions/956343
Post reply on HN