hammerhead: init: add Showp1984's perf edits