MCPcopy
hub / github.com/google/earthengine-api / optimizeReference

Method optimizeReference

javascript/src/serializer.js:543–551  ·  view source on GitHub ↗

* @param {string} ref * @return {string}

(ref)

Source from the content-addressed store, hash-verified

541 * @return {string}
542 */
543 optimizeReference(ref) {
544 if (ref in this.referenceMap) {
545 return this.referenceMap[ref];
546 }
547 const mappedRef = String(this.nextMappedRef++);
548 this.referenceMap[ref] = mappedRef;
549 this.optimizedValues[mappedRef] = this.optimizeValue(this.values[ref], 0);
550 return mappedRef;
551 }
552
553 /**
554 * @param {!ee.api.ValueNode} value

Callers 2

optimizeMethod · 0.95
optimizeValueMethod · 0.95

Calls 2

optimizeValueMethod · 0.95
StringClass · 0.85

Tested by

no test coverage detected