test-infra
bloaty
Our great sponsors
test-infra | bloaty | |
---|---|---|
5 | 15 | |
3,795 | 4,541 | |
0.7% | 1.0% | |
10.0 | 5.3 | |
about 16 hours ago | 29 days ago | |
Go | C++ | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
test-infra
-
Block YouTube Ads on AppleTV by Decrypting and Stripping Ads from Profobuf
The trickiest part of decoding protobufs blind is how embedded messages and strings have the same tag type, but that's pretty easy to handle.
You can write a simple protobuf decoder in a couple hundred lines of code if you don't want to pull in the full protoc dependency: https://github.com/kubernetes/test-infra/blob/master/guberna... https://github.com/kubernetes/test-infra/blob/master/guberna...
- Update labels.yaml by chris-short · Pull Request #24315 · kubernetes/test-infra
-
A Practical Guide to Growing Your Open Source Project: Part 1 – Contributors
Advanced tip: have a way for approved contributors to re-trigger CI. For example, Kubernetes, Kubeflow, and minikube use a tool called prow to run tests. Prow comes with a prow-bot that can accept different commands, automatically tagging issues or rerunning specific tests. Not for small projects, but this can alleviate maintainer headaches caused by trivial busy work.
-
out of the loop question: wtf is honking?
It started as a small inside joke, but kinda just blew up. A bunch of us really loved UGG (which, if you haven’t played it, still highly recommend it even if you aren’t normally into video games), and as some of us have been known to do, take jokes a little too far/literal. A plug-in for the Kubernetes was built (https://github.com/kubernetes/test-infra/pull/14587) that posts goose pictures on command. Then there were some contests/activities put together at our contributor summit that were goose-themed.
-
Don't Use Protobuf for Telemetry
Here's a minimal Python protobuf parser that can extract basic information in about 50 LOC.
https://github.com/kubernetes/test-infra/blob/master/guberna...
bloaty
-
ESP32-C3 Wireless Adventure: A Comprehensive Guide to IoT [pdf]
ESP32s aren't really ‘lower level’ in the sense that anyone is likely to write assembly code for them (compared to, say, 8051 or PIC), other than maybe some driver author at Espressif. The big win from using RISC-V, other than name recognition, is mainstream compiler support (which is nothing to sneeze at, especially when it's largely funded by someone else).
When I worked on Matter¹, the Xtensa and RISC-V versions were basically fungible from the software point of view. (And really, so were other vendors' various ARMs.) We did find that Bloaty McBloatface² didn't support Xtensa, so I had to write an alternative.
¹ https://github.com/project-chip/connectedhomeip/
² https://github.com/google/bloaty
-
How to make smaller C and C++ binaries
I’ve gotten good insight into what takes up space in binaries by profiling with Bloaty (https://github.com/google/bloaty). My last profiling session showed that clang’s ThinLTO was inlining too aggressively in some cases, causing functions that should be tiny to be 75 kB+.
-
Reducing Tailscale’s binary size on macOS
I'm surprised they didn't go for the binary size analysis tools like
https://github.com/google/bloaty
Or goweight.
- C extension making everything bigger
- Template code bloat - how to measure, and what does that even mean?
-
Do you usually use periphery (or other code optimization tools) so that your final built release app is fast/ small?
I was able to shave a few % off our app binary with Bloaty. It’s pretty hard to use but once you figure out how to make regular expressions to properly classify things from your codebase, you can really visually analyze what your binary is composed of.
- how to compare two .so(shared lib) files for size
-
Debugging/optimizing/diagnostic tools for C++
Bloaty
- Bloaty McBloatface: a size profiler for binaries
- Bloaty McBloatface
What are some alternatives?
Protobuf.NET - Protocol Buffers library for idiomatic .NET
Clipboard - 😎🏖️🐬 Your new, 𝙧𝙞𝙙𝙤𝙣𝙠𝙪𝙡𝙞𝙘𝙞𝙤𝙪𝙨𝙡𝙮 smart clipboard manager
kubetest2 - Kubetest2 is the framework for launching and running end-to-end tests on Kubernetes.
TinyGo - Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
upb - a small protobuf implementation in C
protozero - Minimalist protocol buffer decoder and encoder in C++
capstone - Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), BPF, Ethereum VM, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.
urlfilter - AdGuard content blocking library in golang
periphery - A tool to identify unused code in Swift projects.
privaxy - Privaxy is the next generation tracker and advertisement blocker. It blocks ads and trackers by MITMing HTTP(s) traffic.
espthernet - ESP8266 10-Base-T Ethernet Driver