TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Donkey: A Highly-Performant HTTP Stack for Clojure

123 pointsby invisiblerobotover 4 years ago

4 comments

brabelover 4 years ago
&gt; In our benchmarks, the Clojure version underperformed by about 9-13% when comparing peak throughput.<p>The performance difference between Clojure and the pure Java implementations was much smaller than I&#x27;d thought. Quite amazing for a dynamically typed language to get so close to Java in performance, to be honest.<p>The ring-clojure performance was much lower than the Java equivalent, but that&#x27;s expected because de-serialization can be A LOT faster when you use static types for guiding parsing (e.g. cache the string keys and never allocate object keys, maybe small values that are common as well). I wonder if Clojure contracts could be used for the same tricks.
评论 #26013447 未加载
评论 #26016932 未加载
评论 #26016525 未加载
评论 #26017839 未加载
fulafelover 4 years ago
I wonder if they meant to write these &quot;key takeaways&quot; in context of performance, or generally? Taken on their own they don&#x27;t sound too familiar vs why people usually decide to go with Clojure or not.<p>* &quot;Clojure frees developers from the perils of writing concurrent programs, but at a price.&quot;<p>* &quot;When concurrency is not a factor, consider using Java.&quot;
评论 #26014562 未加载
评论 #26078128 未加载
lbjover 4 years ago
Amazing job guys, cant wait to test this out in the field.
ARandomerDudeover 4 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;AppsFlyer&#x2F;donkey" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;AppsFlyer&#x2F;donkey</a>