Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very slow while running contract #576

Closed
tadvi opened this issue Mar 8, 2023 · 3 comments
Closed

Very slow while running contract #576

tadvi opened this issue Mar 8, 2023 · 3 comments
Labels
investigating This behavior is still being tested out

Comments

@tadvi
Copy link
tadvi commented Mar 8, 2023

Very slow while running contract

Git Commit a693e08

Description

build/gnokey maketx addpkg -deposit "1ugnot" -gas-fee "1ugnot" -gas-wanted "5000000" -remote "localhost:26657" -chainid "dev" -pkgdir "/home/sage/gno/build" -pkgpath "gno.land/r/demo/hello" test1
build/gnoland

hello.gno

// hello.gno

package hello

func Render(path string) string {
	return "Hello"
} 

Appears to run very slow while printing bytes of sequences.

Like this:

00\u0000\u0000\u0000@\ufffd\ufffd\u0000\u0000\u0000\u0000\u0000@\u0000\u0000\u0000\u0000\u0000\u0000\u0000 \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0018\u0000\u0000\u0000\u0000\u0000\u0000\u0000\ufffd\ufffd\ufffd\u000e\u000f\u0008\u0008\u0019\u0000c\ufffd\u0000\u0000\u0000\u0000\u0000\ufffd\ufffd\ufffd\u0000\u0000\u0000\u0000\u0000w\ufffd\u0001\u0000`1\u0004\u0000Ӏ\ufffd\u0000\u0000\u0000\u0000\u0000\ufffd\ufffd\ufffd\u0000\u0000\u0000\u0000\u0000\u0004\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0004\u0000\u0000\u0000\u0000\u0000\u0000\u0000\ufffd@\u0000\u0000\u0000\u0000\u0000\u0000p\u0000\u0000\u0000\u0000\u0000\u0000\u0000\ufffdN\ufffd\u0000\u0000\u0000\u0000\u0000\ufffd\ufffd\ufffd\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\ufffdB\ufffd\u0000\u0000\u0000\u0000\u0000\ufffdF\ufffd\u0000\u0000\u0000\u0000\u0000\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0000\ufffdB\ufffd\u0000\u0000\u0000\u0000\u0000\ufffdF\ufffd\u0000\u0000\u0000\u0000\u0000\u0010\u0000\u0000\u0000\u0000\u0000\u0000\u0000\ufffdY\ufffd\u0000\u0000\u0000\u0000\u0000@\ufffd\ufffd\u0000\u0000\u0000\u0000\u0000\u0018\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000J\ufffd*\ufffd\u000f\u0008\u0008\u000c\ufffd\ufffd\ufffd\u0000\u0000\u0000\u0000\u0000\ufffd\ufffd\ufffd\u0000\u0000\u0000\u0000\u0000y\u0008\u0001\u0000\ufffd|\u000f\u0000\ufffd@\u0000\u0000\u0008\u0000\u0000\u0000\u0010\u0000\u0000\u0000\u0000\u0000\u0000\u0000\ufffd\u000e\u0000\u0000\ufffd\u003e\u0005\u0000\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd;\u0000\u0000\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0019\ufffd\u0001\u0000@\ufffd\u0004\u0000\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd}\u000c\u0002\u0000@\ufffd\u0004\u0000\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u000b\u0000\ufffdA\u0001\u0000@\ufffd\u0004\u0000\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u000c\ufffd\u0001\u0000@\ufffd\u0004\u0000\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u000b\u0000\ufffd\ufffd\u0000\u0000@\ufffd\u0004\u0000\ufffd\ufffd\ufffd\ufffd $\u000c\u0000\ufffd\u0002\u0000\u0000\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0010\u0000\u0000\u0000\u0000\u0000\u0000\u0000\t\ufffdĢ\u0007\u0008\u0008\u0019\u0010k\ufffd\u0000\u0000\u0000\u0000\u0000\ufffd\ufffd\ufffd\u0000\u0000\u0000\u0000\u0000\ufffd\u001e\u0002\u0000`2\u0004\u0000Ӏ\ufffd\u0000\u0000\u0000\u0000\u0000@\ufffd\ufffd\u0000\u0000\u0000\u0000\u0000\u0004\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0004\u0000\u0000\u0000\u0000\u0000\u0000\u0000\ufffd@\u0000\u0000\u0000\u0000\u0000\u0000p\u0000
@zivkovicmilos
Copy link
Member

Hey @tadvi,

Thank you for opening up the issue 🙏

What exactly runs slow? Are you calling the Render method for your hello.gno, or trying to deploy the package?

@zivkovicmilos zivkovicmilos added the investigating This behavior is still being tested out label Mar 9, 2023
@zivkovicmilos
Copy link
Member

@tadvi

I've noticed a probably unrelated bug when trying to execute your command, and have opened up a hotfix for it:
#578

I can confirm that this package can be deployed after this fix. This is the command I ran (the hello.gno package was placed in examples/gno.land/p/demo/hello:

./build/gnokey maketx addpkg \
--pkgpath "gno.land/p/demo/hello" \
--pkgdir "examples/gno.land/p/demo/hello" \
--deposit 100000000ugnot \
--gas-fee 1000000ugnot \
--gas-wanted 2000000 \
--broadcast \
--chainid dev \
--remote localhost:26657 \
UserKey

@thehowl
Copy link
Member
thehowl commented Nov 19, 2024

Timing out.

@thehowl thehowl closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating This behavior is still being tested out
Projects
Status: 🌟 Wanted for Launch
Development

No branches or pull requests

5 participants