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)
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>


Trivial merge