Skip to Content
Software Design X-Rays
book

Software Design X-Rays

by Adam Tornhill
March 2018
Intermediate to advanced content levelIntermediate to advanced
276 pages
7h 11m
English
Pragmatic Bookshelf
Content preview from Software Design X-Rays

Solutions: Spot Your System’s Tipping Point

Here are the solutions to the exercises in Chapter 6, Spot Your System’s Tipping Point.

Prioritize Hotspots in CPU Architectures

The main suspect in the arch subsystem is arch/x86/kvm/vmx.c. The file contains 8,500 lines of code, and several of its functions are quite excessive in terms of complexity. Another refactoring candidate with slightly lower change frequency but equal complexity is arch/x86/kvm/x86.c.

Get a Quick Win

There’s plenty of structural duplication within the file erts/emulator/beam/erl_process.c. Fortunately, the functions with the most duplication are relatively small. That means you can either look to live with the duplication by organizing the clones according to proximity, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Righting Software

Righting Software

Juval Lowy
Design It!

Design It!

Michael Keeling
Flow Architectures

Flow Architectures

James Urquhart

Publisher Resources

ISBN: 9781680505795Errata Page