Join Simon Allardice for an in-depth discussion in this video Strategies for network efficiency, part of Foundations of Programming: Code Efficiency.
- View Offline
As with everything else, if you think…network latency is your bottleneck then you…need to measure, you need to profile, you need to analyze it to prove it.…But if you're seeing long latency numbers, realize…there may be more going on than you…think because I'll commonly hear an application problem…described as a network issue when it really isn't.…And here would be the classic example.…Your program makes a request to a remote server, and…there is two seconds of latency, two seconds to that first…byte of the response.…And if all we can measure is that time to first…byte, well that doesn't tell us the whole story, because that…number could mean we have a delay of one second each…way of the network transmission round trip, and that would be bad.…
Because we're getting an almost instantaneous response…on the remote server, which would be great.…But on the other hand, we could be having a fantastic network…transmission of only four or five milliseconds each way, but a two-second…delay on the server while it churns over its badly written processing.…
Learn to choose the right data types, understand the pitfalls of using high-level languages, and decide where to spend your time. Plus, see how the underlying memory management model may have more of an impact than you realize, and what performance issues you can expect working with databases and web services.
- Identifying problems in the code
- Embracing constraints
- Using code analysis tools to measure performance
- Managing memory
- Managing disk-based and network resources
Skill Level Beginner
Foundations of Programming: Refactoring Codewith Simon Allardice1h 44m Intermediate
1. Approaching Efficiency
4. Algorithmic Efficiency
5. Disk-Based and Network Resources
Next steps6m 4s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.