没有合适的资源?快使用搜索试试~ 我知道了~
首页addison wesley - java tm platform performance 1st edition.pdf
addison wesley - java tm platform performance 1st edition.pdf
需积分: 5 55 下载量 58 浏览量
更新于2023-03-03
评论
收藏 803KB PDF 举报
The information in this book will help you write high−performance software for the Java platform. It presentsboth high−level strategies for incorporating performance tuning into your software development process and<br/>code−level performance tuning tactics.
资源详情
资源评论
资源推荐
[Contents] [Prev] [Next] [Index]
To Katie.
−S.W.
To my parents, who taught me to write, reason, and question.
To Dr. Timothy Allen, who taught me to think in terms of systems.
To Dr. Harry Kniaz, without whom my career would not have been possible.
−J.K.
[Contents] [Prev] [Next] [Index]
Copyright © 2001, Sun Microsystems,Inc.. All rights reserved.
JavaTM Platform Performance 2
[Contents] [Prev] [Next] [Index]
Contents
Preface
Part I: Strategies
1 What is Performance?
1.1 Computational Performance
1.2 RAM Footprint
1.3 Startup Time
1.4 Scalability
1.5 Perceived Performance
2 The Performance Process
2.1 Developing a Performance Process
2.1.1 Analysis
2.1.2 Object−Oriented Design
2.1.3 Coding
2.1.4 Testing
2.1.5 Profiling
2.2 References on Object−Oriented Design
3 Measurement is Everything
3.1 Benchmarking
3.1.1 Why Build Benchmarks?
3.1.2 Micro−Benchmarks
3.1.3 Macro−Benchmarks
3.1.4 Analyzing Benchmarks
3.2 Profiling
3.2.1 Profiling Execution Times
3.2.2 Profiling Memory Usage
3.2.3 Profiling to Locate Memory Leaks
3.3 Dealing with Flat Profiles
3.3.1 A Flat Profile Example
Part II: Tactics
4 I/O Performance
4.1 Basic I/O
4.1.1 Buffered Streams
4.1.2 Custom Buffering
4.1.3 Further Improvements
4.2 Serialization
4.2.1 Serialization Example
4.2.2 Improved Serialization Example
4.2.3 Analyzing Persistent State
5 RAM Footprint
5.1 Computing RAM Footprint
5.1.1 Assessing Memory Usage
5.1.2 Measuring a Program's True Footprint
Contents 3
5.2 What Contributes to Footprint?
5.2.1 Objects
5.2.2 Classes
5.2.3 Threads
5.2.4 Native Data Structures
5.2.5 Native Libraries
5.3 Class Loading
5.3.1 Measuring Class Loads
6 Controlling Class Loading
6.1 Eager Class Loading
6.1.1 Controlling Eager Loading
6.2 Reducing the Number of Classes
6.2.1 Simple Inner Classes
6.2.2 Collapsing the Listeners
6.2.3 Using Reflection
6.2.4 Using a Proxy
6.2.5 Who Really Uses These Tactics?
6.3 Running Multiple Programs
6.3.1 The Office Suite
6.3.2 Running in the Same Virtual Machine
6.3.3 A Better Launcher
7 Object Mutability: String and Other Things
7.1 Lots of Little Objects
7.2 Handling String Objects
7.3 Mutable Objects in AWT and Swing
7.3.1 Eliminating Temporary Objects
7.4 Other Mutable Object Tactics
7.4.1 Simulating const
7.5 Mutable Object Case Study
7.6 Small Objects and the Modern JVM
7.6.1 Object Pooling
7.7 Array Mutability
8 Algorithms and Data Structures
8.1 Selecting Algorithms
8.1.1 Comparing Algorithms
8.1.2 Achieving Elegance
8.1.3 Considering the Problem Space
8.2 Using Recursive Algorithms
8.3 Beyond Simple Algorithms
8.4 Selecting Data Structures
8.4.1 Java 2 Collections
8.4.2 The Collection Interfaces
8.4.3 Collection Interface
8.4.4 List Objects
8.4.5 Set Objects
8.4.6 Map Objects
8.4.7 Synchronized Collections
8.4.8 Collections Framework Algorithms
8.4.9 Plain Arrays
8.4.10 Immutable Collections
8.5 Collections Example
Contents 4
8.5.1 Collection Benchmark Results
8.6 References on Algorithms and Data Structures
9 Using Native Code
9.1 Native Graphics Example
9.1.1 Native Code Comparison
9.2 Examining JNI Costs
9.2.1 Java Language Copy
9.2.2 JNI Patterns
9.2.3 Pattern 1: Call
9.2.4 Pattern 2: Call−Pull
9.2.5 Pattern 3: Call−Pull−Push
9.2.6 Pattern 3 (Variant): Call−Pull−Push with Critical
9.2.7 Pattern 4: Call−Invoke
9.3 Native Code Case Studies
9.3.1 Java Media Framework
9.3.2 The java.math Package
9.3.3 Java 3D
10 Swing Models and Renderers
10.1 Swing's Component Architecture
10.2 Scalable Components
10.2.1 Renderers
10.2.2 Models
10.2.3 Example: Simple Spreadsheet
10.2.4 Using Custom Models
10.2.5 Using Custom Renderers
10.2.6 Using Custom Models and Renderers Together
11 Writing Responsive User Interfaces with Swing
11.1 Guidelines for Responsive GUIs
11.1.1 Design, Then Build (Repeat)
11.1.2 Put the User in Charge
11.2 Using Threads in Swing Programs
11.2.1 The Single−Thread Rule
11.2.2 Using invokeLater and invokeAndWait for Event Dispatching
11.3 Using Timers in Swing Applications
11.3.1 How Timers Work
11.3.2 Code Without Timers
11.3.3 The Swing Timer Class
11.3.4 The Utility Timer and TimerTask Classes
11.3.5 How to Choose a Timer Class
11.3.6 Timer Example
11.4 Responsive Applications Use Threads
11.5 Example: Searching the Web
11.5.1 Worker Thread Priority
11.5.2 Interrupting a Worker Thread
12 Deployment
12.1 Compiler Options
12.2 JAR Files
12.2.1 Reducing Program Size
12.2.2 Download Time Reduction
12.2.3 JAR Files and Resources
12.3 Packaging Utilities
Contents 5
剩余186页未读,继续阅读
virtualf
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 2023年中国辣条食品行业创新及消费需求洞察报告.pptx
- 2023年半导体行业20强品牌.pptx
- 2023年全球电力行业评论.pptx
- 2023年全球网络安全现状-劳动力资源和网络运营的全球发展新态势.pptx
- 毕业设计-基于单片机的液体密度检测系统设计.doc
- 家用清扫机器人设计.doc
- 基于VB+数据库SQL的教师信息管理系统设计与实现 计算机专业设计范文模板参考资料.pdf
- 官塘驿林场林防火(资源监管)“空天地人”四位一体监测系统方案.doc
- 基于专利语义表征的技术预见方法及其应用.docx
- 浅谈电子商务的现状及发展趋势学习总结.doc
- 基于单片机的智能仓库温湿度控制系统 (2).pdf
- 基于SSM框架知识产权管理系统 (2).pdf
- 9年终工作总结新年计划PPT模板.pptx
- Hytera海能达CH04L01 说明书.pdf
- 数据中心运维操作标准及流程.pdf
- 报告模板 -成本分析与报告培训之三.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0