Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-159633

Command feedback messages are unnecessarily created during function execution

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.14.4, 19w34a, 19w35a, 1.15 Pre-release 5, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w14a, 20w16a, 20w17a, 20w18a, 20w20b, 1.16 Pre-release 5, 1.16.1, 20w27a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3, 1.16.4 Pre-release 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w08b, 21w10a, 21w11a, 21w13a, 21w15a, 21w16a, 21w19a, 1.17 Pre-release 1, 1.17, 1.17.1
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Community Consensus
    • Category:
      Commands, Performance
    • Mojang Priority:
      Normal

      Description

      The bug

      Command feedback is never sent to the command source during function execution, but a translatable component for command feedback is always created eagerly on each command execution. This makes some commands significantly slower than expected.

      Examples

      The following commands take linear time instead of constant time.

      • Size of forced chunks
        /forceload query
      • Deep size of collection
        /data get storage _ path.to.collection
      • Deep size of compound
        /data get storage _ path.to.compound

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            intsuc intsuc
            Votes:
            15 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: