solana-playground / solana-playground

Quickly develop, deploy and test Solana programs from browsers
https://beta.solpg.io
Apache License 2.0
398 stars 133 forks source link

JSON payload is larger than allowed #196

Open TheMauss opened 3 months ago

TheMauss commented 3 months ago

Hello, would it be possible to increase the payload? I love devving in playground.

acheroncrypto commented 3 months ago

How big is your payload? We're quite generous in terms of payload size but we also have to consider that at one point, it starts to take a lot of time to build programs that are larger than the current limit.

TheMauss commented 3 months ago

I am working around the limit, but like 50% increase would be sweet spot.

acheroncrypto commented 3 months ago

We could do that but will have to test the build times first. How long does it take to build your current program?

TheMauss commented 3 months ago

just tested, 15 seconds at the payload limit, which is pretty good

TheMauss commented 3 months ago

Any possible update on that?

acheroncrypto commented 3 months ago

I'd like to increase it further but the reason why I'm currently hesitant is because build times will go up by ~2x in the next Anchor version due to building of the IDL.

The goal is to keep build times <10s and even the current limit exceeds that.

One solution would be to allow anyone to use their own machine to build programs. To do this, all you need would be Docker and run the playground server with docker compose up command. This would mean no limits as well as any customization you might want to have. Would you be interested in this?

TheMauss commented 3 months ago

Yeah, I would love that

acheroncrypto commented 3 months ago

FYI, you can already run playground locally on your machine with just a few commands:

  1. Clone the repo
  2. Setup client
  3. Run server
TheMauss commented 3 months ago

Okk, thank you.

Btw is there any issue with the playground? Cant deploy program for 2 days.

Console says no error, but i get only this in terminal "Deploying... This could take a while depending on the program size and network conditions."

acheroncrypto commented 3 months ago

There was an issue but it wasn't related to the playground — devnet was down for a couple of days and it just got up and running again a few hours ago.

TheMauss commented 3 months ago

Works perfectly, increased the payload on local. Thank you