Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news-transit.tcx.org.uk!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: JNA performance Date: Mon, 09 May 2011 08:36:00 -0400 Organization: albasani.net Lines: 27 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 LKEu9uyju197e/hqIhvL+9fl3KFZBnGFo40DXMGVOwy8LL5jq3uS6htqTrZPGPeextjTnB5bO0AJFgJTz9LslQ== NNTP-Posting-Date: Mon, 9 May 2011 12:35:57 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="45lmtKB/2KYrrSXhfynP6/SJZfv/xtn9ENZS5U3S75XoBt6SsU07DZClm9ARjrM1CSSUTHNZYEYetguMZafvm7Mj8oXDHvf7VD5/HLNq40ArDamdLR+aLuYHWqPxOHwW"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:Fq3536PFn1Gxl0kJTDuePLuiV30= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3848 Roedy Green wrote: > Lew wrote, quoted or indirectly quoted someone who said : > >> >> Using JNA or JNI for performance is likely to be a fool's errand. What is the >> performance of your non-JNA approach? How much better does it need to be? >> Why do you think that calls to non-native libraries are the bottleneck? >> >> Also, where do you get the notion that JNA "sucks performance-wise"? The JNA >> folks claim that "some attention is paid to performance". That indicates /a >> priori/ that performance is likely not to "suck". Therefore any conclusion >> you made that they failed in that attention is based on measurement. What >> measurements did you perform, what were the results, and what do you need the >> results to be? > > The implementors of JNA will use the same JNI interface you would. > That's the bottleneck. It is not as though the code is doing So you have access to his performance test results to know where his bottleneck is? Amazing. I question whether the OP has a performance problem, not where it is. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg