Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
0.55: High memory usage in multisite with un-needed clone of shortcode templates #5890
The repo linked to in that comment shows a 3,5x increase in "Maximum resident set size (kbytes)" reported from gnutime (the runtime is, however, about the same on my MacBook).
(pprof) top Showing nodes accounting for 2375.53MB, 81.77% of 2905.21MB total Dropped 340 nodes (cum <= 14.53MB) Showing top 10 nodes out of 114 flat flat% sum% cum cum% 1689.44MB 58.15% 58.15% 1689.44MB 58.15% github.com/nicksnyder/go-i18n/i18n/bundle.(*Bundle).Translations 273.51MB 9.41% 67.57% 2321.03MB 79.89% reflect.Value.call 87.51MB 3.01% 70.58% 87.51MB 3.01% text/template/parse.(*Tree).newPipeline 54MB 1.86% 72.44% 54MB 1.86% reflect.FuncOf 51MB 1.76% 74.19% 51MB 1.76% text/template/parse.(*CommandNode).append 48.04MB 1.65% 75.85% 48.04MB 1.65% bytes.makeSlice 46MB 1.58% 77.43% 58.50MB 2.01% reflect.MakeSlice
Sadly, there still seems to be a "new memory" issue with that site, even if I get rid of that call to Translations above, which is fairly unusual I suspect (lots of untranslated strings). But the site builds twice as fast ...