Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
v0y4g3r
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
v0y4g3r
10mo ago
You nailed it
2.
▲
by
v0y4g3r
2y ago
WriteRequest::timeseries is a vector ( https://github.com/prometheus/prometheus/blob/main/prompb/re... ) and the repeated file `Timeseries::labels` and `Timeseries::samples` are reused across differe
3.
▲
by
v0y4g3r
2y ago
The Go version is not a naive implementation, it's also the well optimized version from VictoriaMetrics.
4.
▲
by
v0y4g3r
2y ago
It's technically `safe` as long as you never access the decoded struct once the original bytes is dropped. I believe that how `unsafe` works, the programmer, instead of compiler, ensures safety.
5.
▲
by
v0y4g3r
2y ago
I think no. In this particular case it involves how Rust handles lifetimes compared to other languages with garbage collector. Essentially it's a comparison between reference counting and tracing garbage collection based on reacheabili
6.
▲
by
v0y4g3r
2y ago
FlatBuffers does the trick as a better replacement to ProtoBuf when running in some resource-critical devices. We were working on a project that leverage Arrow IPC (internally FlatBuffers) and shared memory to collect metrics on edge device