Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Good Fowler article on ORM Date: Sat, 12 May 2012 13:55:59 -0700 Organization: albasani.net Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net p+HCWiaHEiqzMWTUK7w94ZBAERhsF6SpSex6aBFSzU4MEsfhxqVUP+H+C5Ztx9+dPc1hJGO8vYsO5ngxDC4ceZsCKFR+bdq0JkkmjCy0Ui244lD6GL8UNVGfLFB/95CA NNTP-Posting-Date: Sat, 12 May 2012 20:55:57 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="1lTqZfn+XSWv6Qz6Wc5VfoVixUdt4Cl4oTaHi5cKq86gIPNXf2VOUlKJiYljHjAks6iXfM0Fdz5qdhEXT2HH7v6oafqJ9B+ee0Z7FMODLAFi3IJPM8q0FTTDtGChoeMP"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 In-Reply-To: Cancel-Lock: sha1:oz8oR7OBm0PLaOlL5jmhnuO8AX8= Xref: csiph.com comp.lang.java.programmer:14495 Jan Burse wrote: > Jan Burse schrieb: >> Without a JIT, direct field access is about 3x faster than invoking a >> trivial getter. With the JIT (where direct field access is as cheap as >> accessing a local), direct field access is about 7x faster than invoking >> a trivial getter. This is true in Froyo, but will improve in the future >> when the JIT inlines getter methods." > > Maybe an updated happened, but I didn't find a notice > about it. The last notice I found was: > > http://android-developers.blogspot.com/2010/05/dalvik-jit.html > Which is already 2 years old! > > The above blog post refers to Android 2.2, > which is Froyo. > > Maybe somehow has found something newer? And how much difference does that make to the application? 1%? 17%? 97%? "3x faster" and "7x faster" at what level? Just the raw call to get the attribute? In what usage scenario? At what load on the device? The effect that has depends on how much those accessors are called. And what is the cost to the application maintainability? For a cost-benefit analysis you need to identify both the costs and the benefits, and accurately, and relevantly. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg