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

Aperta
#14,446 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
40/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Java
Stelle
12.8k
Fork
3.6k
Merge medio
3g 7h
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PaperMC/Paper

Tutte le issue di PaperMC/Paper

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.