All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Performance Optimization: How a 185-Microsecond Type Hint Boosted Throughput 13× in Clojure Roughtime Implementation

By

kianN

3mo ago· 5 min readenInsight

Summary

The article describes a performance optimization in a Clojure implementation of the Roughtime protocol, where a seemingly trivial change to type hints resulted in a 13× throughput increase. The author explains how adding a 185-microsecond type hint to a function dramatically improved performance by helping the JVM compiler generate more efficient bytecode. The article details the technical investigation process, including benchmarking, profiling, and analyzing JVM bytecode to understand why this small change had such a significant impact on the cryptographic time synchronization protocol's performance.

Key quotes

· 4 pulled
How a 'trivial' change yielded a 13× throughput increase.
The server replies with a signed certificate containing both the nonce and a timestamp, proving the response happened after the request.
Responses can be chained together with provable ordering; if any server's timestamps are inconsistent with that ordering, that server is cryptographically 'outed' as unreliable.
When a client asks for the time, it sends a random nonce.
Snippet from the RSS feed
How a “trivial” change yielded a 13× throughput increase.

You might also wanna read