Small performance issue on storage manager
Question
Hello ! On storage manager "load(keys, clb)" there is an unnecessary Regular expression creation inside a loop that don't need to be there.
Here is the fixed code.
st && st.load(keysF, res => {
// Restore keys name
var reg = new RegExp('^' + c.id + ''); ///////// <<< This originally was inside the next for loop
for (var itemKey in res) {
var itemKeyR = itemKey.replace(reg, '');
result[itemKeyR] = res[itemKey];
}
Cheers !
Answers (1)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1524
Howto add Blocks?
Hello all, it turns me crazy but I do not understand how to add blocks. I can write them myself following tutorial, but when I load plugin,...
Issue #1127
Command running multiple times
Hello Folks, I need your help.I created a custom button on the commands Panel to publish the site created from Grapes.When i click on it, i...
Issue #873
[Need help]: After using urlLoad from storage manager impossible to change component with Traits
Hello, I am save template to db and after loading from db impossible to change component with Traits. Video example on countdown: https://y...
Issue #1541
Remove Last changes From Undo Manager Stack
@artf Hello Can we remove the last event (changes) from undomanger. I need remove last event (change) from undo manger stack. I can get und...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.