VE-739 Match in middle of text when searching for categories

I quickly tested this using:

(#1) var start = Date.now(); var formattedData = { 'query': { 'allcategories': [] } }; var i = 0; while (i <= 999999) { formattedData.query.allcategories.push( { '*': i } ); i++; } console.log(Date.now() - start);

versus...

(#2) var start = Date.now(); var formattedData = { 'query': { 'allcategories': [] } }; var ref = formattedData.query.allcategories; var i = 0; while (i <= 999999) { ref.push( { '*': i } ); i++; } console.log(Date.now() - start);

...in Chrome and Firefox on Mac. Interestingly, Chrome is much slower executing this than FF, and in Chrome there seems to be no difference in speed between the two. However, in Firefox there is a definite (slight) increase in speed using a reference to the inner object.

So, I will make that change. :)