-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
purego: decrease number of allocs in RegisterFunc (#128)
This rewrites part of the RegisterFunc to have less code escape to the heap. Running the benchmark inside #121 shows a speed increase and alloc decrease. goos: darwin goarch: arm64 pkg: github.com/ebitengine/purego BenchmarkCStringC BenchmarkCStringC-10 2294838 500.3 ns/op 472 B/op 8 allocs/op PASS
- Loading branch information
1 parent
c3a82d7
commit ec16513
Showing
2 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters