algorand / algorand/go-algorand

Increase max application program size beyond 8kb

Aperta
#6,155 27 commenti 4 reazioni 1 assegnatario Rivendicata da @jannotti Vedi su GitHub
Enhancement
Lingua principale
Go
Stelle
1.4k
Fork
537
Merge medio
1g 7h
PR unite (30g)
18

Descrizione

## Status

The maximum program size for an application is currently **8kb**. Once a contract is deployed, the program size is immutable.

This limit is currently constraining multiple builders in the ecosystem who have hit the limit and are using creative approaches to optimize program size. The limit could also constrain future upgradability of contracts that are deployed today with max program pages but may need to add additional logic in the future.

## Expected

Raising the maximum program size would enable developers to create more capable applications on Algorand without resorting to contortive optimizations.

## Solution

Increase the maximum program size substantively.

One approach that could be elegant is to align the max program size to the max box size, which is currently **32KB**. This way, an app factory pattern could store program bytes in one box and use that to create new applications. If this approach was followed, any future expansions of the box storage limit would also apply to the maximum program size.

## Dependencies

Unknown

## Urgency

Relatively urgent. Three different ecosystem projects have recently escalated to DevRel that they have hit the program size limit, so the current limit is actively constraining builders in the ecosystem.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.