My Account Log in

1 option

Java performance tuning / Jack Shirazi.

Van Pelt Library QA76.73.J38 S47 2000
Loading location information...

Available This item is available for access.

Log in to request item
Format:
Book
Author/Creator:
Shirazi, Jack.
Series:
Java series (O'Reilly & Associates)
Java series
Language:
English
Subjects (All):
Java (Computer program language).
Physical Description:
xiv, 426 pages : illustrations ; 24 cm.
Place of Publication:
Cambridge, Mass. : O'Reilly, 2000.
Summary:
"Java Performance Tuning" provides the details developers need to know to performance tune any type of Java program and make Java code run significantly faster. Presents step-by-step instructions on all aspects of the tuning process, with extensive, detailed examples and performance tuning checklists.
Contents:
Why Is It Slow? 2
The Tuning Game 3
System Limitations and What to Tune 3
A Tuning Strategy 5
Perceived Performance 6
Starting to Tune 10
What to Measure 15
Don't Tune What You Don't Need to Tune 17
2. Profiling Tools 20
Measurements and Timings 21
Garbage Collection 23
Method Calls 26
Object-Creation Profiling 43
Monitoring Gross Memory Usage 50
Client/Server Communications 56
3. Underlying JDK Improvements 64
Garbage Collection 64
Replacing JDK Classes 66
Faster VMs 68
Better Optimizing Compilers 73
Sun's Compiler and Runtime Optimizations 82
Compile to Native Machine Code 89
Native Method Calls 90
Uncompressed ZIP/JAR Files 91
4. Object Creation 94
Object-Creation Statistics 96
Object Reuse 97
Avoiding Garbage Collection 112
Initialization 115
Early and Late Initialization 117
5. Strings 122
The Performance Effects of Strings 122
Compile-Time Versus Runtime Resolution of Strings 125
Conversions to Strings 126
Strings Versus char Arrays 142
String Comparisons and Searches 150
Sorting Internationalized Strings 153
6. Exceptions, Casts, and Variables 161
Exceptions 161
Casts 167
Variables 169
Method Parameters 172
7. Loops and Switches 174
Java.io.Reader Converter 178
Exception-Terminated Loops 184
Switches 189
Recursion 195
Recursion and Stacks 200
8. I/O, Logging, and Console Output 204
Replacing System.out 206
Logging 208
From Raw I/O to Smokin' I/O 209
Serialization 217
Clustering Objects and Counting I/O Operations 230
Compression 232
9. Sorting 237
Avoiding Unnecessary Sorting Overhead 237
An Efficient Sorting Framework 241
Better Than O(nlogn) Sorting 249
Performance Checklist 255
10. Threading 256
User-Interface Thread and Other Threads 258
Race Conditions 259
Deadlocks 261
Synchronization Overheads 265
Timing Multithreaded Tests 275
Atomic Access and Assignment 276
Thread Pools 278
Load Balancing 279
Threaded Problem-Solving Strategies 291
11. Appropriate Data Structures and Algorithms 293
Collections 294
Java 2 Collections 296
Hashtables and HashMaps 298
Cached Access 302
Caching Example I 303
Caching Example II 306
Finding the Index for Partially Matched Strings 310
Search Trees 314
12. Distributed Computing 335
Tools 337
Message Reduction 339
Comparing Communication Layers 342
Caching 344
Batching I 346
Application Partitioning 347
Batching II 348
Low-Level Communication Optimizations 349
Distributed Garbage Collection 354
Databases 355
13. When to Optimize 357
When Not to Optimize 358
Tuning Class Libraries and Beans 359
Analysis 362
Design and Architecture 366
Tuning After Deployment 382
More Factors That Affect Performance 383
14. Underlying Operating System and Network Improvements 389
Hard Disks 390
CPU 395
RAM 397
Network I/O 398.
Notes:
Includes bibliographical references (pages 405-408) and index.
ISBN:
0596000154
OCLC:
44775407

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account