Consolidated all sub-documents into character document to improve granularity significantly
Because just the top-level field changing invalidates everything in the sub-document, a single attribute change would trigger a re-calculation on all attributes and their dependents. This change should significantly improve performance.
This commit is contained in:
8
rpg-docs/client/main.js
Normal file
8
rpg-docs/client/main.js
Normal file
@@ -0,0 +1,8 @@
|
||||
_.each(Template, function (template, name) {
|
||||
if(template){
|
||||
var counter = 0;
|
||||
template.rendered = template.rendered || function () {
|
||||
console.log(name, "render count: ", ++counter);
|
||||
};
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user