Mojira Archive
MC-159633

Command feedback messages are unnecessarily created during function execution

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 imposes a constant overhead on commands in general and also makes some commands significantly slower in performance.

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
  • Length of string due to quoting and escaping
    /data get storage _ path.to.string