Cache the page's rendering context flags
authorbep <bjorn.erik.pedersen@gmail.com>
Wed, 21 Jan 2015 14:28:05 +0000 (15:28 +0100)
committerbep <bjorn.erik.pedersen@gmail.com>
Wed, 21 Jan 2015 14:30:03 +0000 (15:30 +0100)
commitc8f8f48e9600f733422180d50a97bb2deea8ba75
tree0f931a8e807d4a207a7093f56afd92f0e86a9cc8
parent19c52ab0b5a5a8f89d43dcc2e2a15e2f53170017
Cache the page's rendering context flags

This map can potentially be used many times for a given page, and altough the cost of re-creating the map should be minimal, caching it is simple -- and could save some GC and CPU cycles.
hugolib/page.go