We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Performance issue: KCL evaluates unused package fields.
Run script:
#!/bin/sh mkdir -p unused_pkg cat > kcl.mod <<EOF [package] name = "__main__" edition = "0.0.1" version = "0.0.1" EOF cat > main.k <<EOF import unused_pkg EOF cat > unused_pkg/data.k <<EOF show = lambda s -> str { print(s) s } foo = { name: "foo" value: show("foo") } EOF kcl run .
This script creates files:
kcl.mod
[package] name = "__main__" edition = "0.0.1" version = "0.0.1"
main.k
import unused_pkg
unused_pkg/data.k
show = lambda s -> str { print(s) s } foo = { name: "foo" value: show("foo") }
And run main.k.
I expect that top-level unused variables is lazy evaluated.
{}
I see labmda output on unused top-level variable evaluation.
foo {}
0.10.9-linux-amd64
The text was updated successfully, but these errors were encountered:
He1pa
No branches or pull requests
Bug Report
Performance issue: KCL evaluates unused package fields.
1. Minimal reproduce step (Required)
Run script:
This script creates files:
kcl.mod
main.k
unused_pkg/data.k
And run
main.k
.2. What did you expect to see? (Required)
I expect that top-level unused variables is lazy evaluated.
3. What did you see instead (Required)
I see labmda output on unused top-level variable evaluation.
4. What is your KCL components version? (Required)
The text was updated successfully, but these errors were encountered: