Skip to content

Refactoring Go#2551

Open
Yewzir wants to merge 3 commits intocode-golf:masterfrom
Yewzir:go-cache
Open

Refactoring Go#2551
Yewzir wants to merge 3 commits intocode-golf:masterfrom
Yewzir:go-cache

Conversation

@Yewzir
Copy link
Contributor

@Yewzir Yewzir commented Dec 17, 2025

In this commit, I've changed a few things about how Go programs are executed.

  • I've stopped copying the cache directory to the current working directory at each runtime by making the cache directory accessible through permission changes. This doesn't take a millisecond.
  • The source file is now compiled and executed directly with a single command. This command reduces compilation time because the current command generates debugging information in the resulting binary, while the new command does not.

The performance difference is clearly noticeable.

In this commit, I've changed a few things about how Go programs are
executed.

* I've stopped copying the cache directory to the current working
directory at each runtime by making the cache directory accessible
through permission changes. This doesn't take a millisecond.
* The source file is now compiled and executed directly with a single
command. This command reduces compilation time because the current
command generates debugging information in the resulting binary, while
the new command does not.

The performance difference is clearly noticeable.
@Yewzir Yewzir marked this pull request as draft December 17, 2025 19:32
I forgot this was also an "issue" in code-golf#1438. Despite this, there is
still a noticeable difference.
@Yewzir Yewzir marked this pull request as ready for review December 21, 2025 18:24
@github-actions github-actions bot added the conflicts Pull Request has conflicts. label Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts Pull Request has conflicts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant