Document that SkyFunction$Environment#registerDependencies is less performant when used with EvaluationVersionBehavior#MAX_CHILD_VERSIONS.

PiperOrigin-RevId: 212033545
diff --git a/src/main/java/com/google/devtools/build/skyframe/SkyFunction.java b/src/main/java/com/google/devtools/build/skyframe/SkyFunction.java
index 6c34940..1ef2971 100644
--- a/src/main/java/com/google/devtools/build/skyframe/SkyFunction.java
+++ b/src/main/java/com/google/devtools/build/skyframe/SkyFunction.java
@@ -325,6 +325,11 @@
      *
      * <p>WARNING: Dependencies here MUST be done! Only use this function if you know what you're
      * doing.
+     *
+     * <p>If the {@link EvaluationVersionBehavior} is {@link
+     * EvaluationVersionBehavior#MAX_CHILD_VERSIONS} then this method may fall back to just doing a
+     * {@link #getValues} call internally. Thus, any graph evaluations that require this method to
+     * be performant <i>must</i> run with {@link EvaluationVersionBehavior#GRAPH_VERSION}.
      */
     default void registerDependencies(Iterable<SkyKey> keys) throws InterruptedException {
       getValues(keys);