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.

Ask HN: What are good resources for solving performance bottlenecks?

1 pointsby cwafflesover 2 years ago
As the title says, what techniques do you use to find bottlenecks in streaming, high throughput applications? What are general techniques for resolving the bottlenecks (fine grained locking, flamegraphs, efficient data structures)?

2 comments

smoldesuover 2 years ago
You&#x27;re probably familiar with most of the tools, I&#x27;ve rarely seen a stack that didn&#x27;t just add Prometheus endpoints when they wanted better visibility. As for resolving these problems, it&#x27;s good to start with the basics. Check to see if something is going wrong, and if not then solve it though software (optimizing, using faster alternative) or hardware (allocating larger machines or increasing scalability).<p>Unless you&#x27;re more specific, it&#x27;s really hard to offer concise advice here.
an1sotropyover 2 years ago
The language and operating system in use will have a big influence on this- what are they?<p>E.g. for C programs I use sampling-based profiling (like Mac makes super easy with the “Time Profiler” Instrument) to find the bottleneck(s) and then drill down to see associated code sections. Different languages and OSs have different tools for identifying bottlenecks.<p>If performance is network-bound, that’s a very different set of considerations (with which I have no experience)
评论 #32992119 未加载