|
Slimming Wireless Java Applications - 为无线Java应用程序瘦身(1)
Slimming Wireless Java Applications 为无线Java应用程序瘦身 by FrontPageTempDir/pvwD.htm#about">Qusay H. Mahmoud 作者 FrontPageTempDir/pvwD.htm#about">Qusay H. Mahmoud October 2003 2003年10月 In the old days programmers wrote their programs in assembly language, and were able to pack a lot of functionality into a few kilobytes of memory. Since then, technology advances sUCh as object-oriented programming (OOP) have taken developers a long way from machine-level instrUCtions and direct management of memory. The fundamental goal of OOP in particular is to increase the prodUCtivity of programmers through code reuse (inheritance for example), and not to prodUCe applications that are compact. 过去程序员用汇编语言编写程序,那时他们可以把许多功能写到仅有的几K内存中。从那以后,诸如面向对象编程(OOP)这样的技术进步使得开发人员远离了机器指令和对内存的直接管理。OOP所专注的基本目标是通过代码重用(比如继承)来提高程序员的生产力,而并不是用于产生紧凑的应用程序。 Following the advice to "optimize later," most programmers focus on the logic, correctness, and reliability of applications, not their size and speed. Developers of applications that run on mobile devices with low power and a small memory footprint, however, can't afford to ignore efficiency. Hardware is eXPensive in the wireless world. Devices with less memory are mUCh cheaper than devices with the same characteristiCS that have more memory, and they consume less power.
|