Merge: More lib/html optimizations
authorJean Privat <jean@pryen.org>
Thu, 22 Oct 2015 18:15:10 +0000 (14:15 -0400)
committerJean Privat <jean@pryen.org>
Thu, 22 Oct 2015 18:15:10 +0000 (14:15 -0400)
commit3736fe87dd06a1abfff45197ded19bb2c737a519
tree4b72d62f87a7a8876866fc056054fd8b08d75eb4
parenta1863f253e6201e34d7bf8fb7657bd62b903930f
parent454e78951b525db7f3f483e285465d5e44cf7a11
Merge: More lib/html optimizations

Lazily create structures for attributes and children as most HTML nodes do not have them.

User time for `time ./nitlight ../lib -d out`:

* before 0m8.196s
* after 0m6.940s (-15%)

Pull-Request: #1780
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>