[Feature] Allow changing cache size of parsed datapack function macros

Đang mở
#14,446 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
40/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
backend

Hướng nghiên cứu

The request is to expose the datapack macro function cache size, which Minecraft currently fixes at 8 parsed variations per function, as a Paper configuration option. Start from the Paper configuration handling and find where the vanilla function cache limit is set or could be overridden. Done means a new config line controls the cache size and a test or manual check confirms the value is applied.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

status: needs triage
Is your feature request related to a problem?

Yes - Minecraft currently only caches 8 parsed variations per function of macro functions in datapacks. This value can't be changed.

Describe the solution you'd like.

Add a line in paper's configuration to allow changing the cache size for parsed datapack functions.

Describe alternatives you've considered.

There is currently no alternative, other than duplicating your functions so that they that they can hit the cache more often.

Other

No response

Ngôn ngữ chính
Java
Star
12.8k
Fork
3.6k
Merge trung bình
3 ngày 7 giờ
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PaperMC/Paper

Tất cả issue của PaperMC/Paper

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.