The only reason Object.create was used here was to hand the template info its parent template info; since templateInfo is prototypical at this point, this made it an instance. For whatever reason, this caused a 5-10% performance regression on some benchmarks. The <template> node also acts as an instance that can carry this info, and doing so gets the performance back.
The only reason
Object.create
was used here was to hand the template info its parent template info; sincetemplateInfo
is prototypical at this point, this made it an instance. For whatever reason, this caused a 5-10% performance regression on some benchmarks. The<template>
node also acts as an instance that can carry this info, and doing so gets the performance back.