Skip to content

Instantly share code, notes, and snippets.

View ackratos's full-sized avatar
🎧
Music in, code out

Hungry ackratos

🎧
Music in, code out
View GitHub Profile
@ackratos
ackratos / snapshot.go
Created April 2, 2019 12:41
snapshot.go
package types
import "fmt"
const ManifestVersion int32 = 0
type SHA256Sum [32]byte // check sum of chunk
func (hsum SHA256Sum) String() string {
return fmt.Sprintf("%X", hsum)
@ackratos
ackratos / gist:ea47f71cade651efb5af50e6548fa2cc
Created December 10, 2017 14:45
scala performance contribution tips
Could you please post your method for generating those benchmark results. The error margins appears too high to draw conclusions, so perhaps you ran with insufficient warmup, iterations etc? Did you build the library with the optimizer enabled? (sbt setupPublishCore dist/mkPack will do this.)
Microbenchmarks should only call the code under test, so please remove the assertions (they are still run in test/junit/scala/util/matching/RegexTest.scala, the source of the examples you are benchmarking.
What was the primary motivation to create a custom benchmark runner for this test? I tend to enable profilers interactively jmh:run -prof gc ... in the SBT shell.
@ackratos
ackratos / introrx.md
Created February 14, 2016 01:50 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing