Viewing profile — tossaway32
tossaway32
HN member- Joined
- Tue, Nov 23, 2021, 11:45 PM UTC
- HN karma
- 15
- Public activity
- 6 items
- HN profile
- View on Hacker News ↗
About tossaway32
No profile information was provided.
Recent public activity
-
comment
Comment #29344170
How does Java do without using an array of ints, or Valhalla? In other words, what's the cost of Java's forced indirection? What happens if you use pool := make([]Tree, 0, 256) ins…
-
comment
Comment #29341896
Thanks for doing the test!
-
comment
Comment #29335870
Do it. Show me that Java can avoid allocating/collecting the Tree objects. Go has no indirection for the Tree objects, in this example. The Trees are contiguous in memory. Measure …
-
comment
Comment #29326076
You don't rewrite your whole program to use pooled allocations. Just the parts of your program where allocation performance needs to be improved. If part of your program is doing m…
-
comment
Comment #29325539
I'm not going to paste 170 lines of code into the thread. Add this line: var pool []Tree to each of the stretch and long-lived closures in run(), pass &pool as the second argument …
-
comment
Comment #29325137
Look at the Go benchmark program: https://benchmarksgame-team.pages.debian.net/benchmarksgame/... Needs to be faster? Use a pool like the C benchmark programs, but super simple: ju…