<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Efficient JNI programming IV: Wrapping native data objects</title>
	<atom:link href="http://kennke.org/blog/2007/07/30/efficient-jni-programming-iv-wrapping-native-data-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://kennke.org/blog/2007/07/30/efficient-jni-programming-iv-wrapping-native-data-objects/</link>
	<description>Roman Kennke's ramblings</description>
	<pubDate>Wed, 07 Jan 2009 04:23:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Satyavathi</title>
		<link>http://kennke.org/blog/2007/07/30/efficient-jni-programming-iv-wrapping-native-data-objects/#comment-65010</link>
		<dc:creator>Satyavathi</dc:creator>
		<pubDate>Mon, 05 Jan 2009 07:06:13 +0000</pubDate>
		<guid isPermaLink="false">http://kennke.org/blog/2007/07/30/efficient-jni-programming-iv-wrapping-native-data-objects/#comment-65010</guid>
		<description>Can DirectByteBuffer be used for C++ classes also, just like we use it for C Structures. Any pitfalls if it can be used?</description>
		<content:encoded><![CDATA[<p>Can DirectByteBuffer be used for C++ classes also, just like we use it for C Structures. Any pitfalls if it can be used?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satyavathi</title>
		<link>http://kennke.org/blog/2007/07/30/efficient-jni-programming-iv-wrapping-native-data-objects/#comment-65007</link>
		<dc:creator>Satyavathi</dc:creator>
		<pubDate>Wed, 31 Dec 2008 11:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://kennke.org/blog/2007/07/30/efficient-jni-programming-iv-wrapping-native-data-objects/#comment-65007</guid>
		<description>there is a pointer that points to millions entries in the memory. 
It is very easy to get nextelement in c, by just incrementing the pointer.
If you want to get the million entries that are there in memory to a java object, this can be done in a single JNI call, poplating the java object. 
To get into the java object you need to traverse over all the entries once, and if these entries are to be processed then one more scan is needed on the java object. Processing can be done only on the java side.

Therefore 2 scans on millions of entries. 
 
In the other scenario, do a single scan over the entries, but call million times the JNI method.
 
Do you still recommend to get everything on to the java side and process.</description>
		<content:encoded><![CDATA[<p>there is a pointer that points to millions entries in the memory.<br />
It is very easy to get nextelement in c, by just incrementing the pointer.<br />
If you want to get the million entries that are there in memory to a java object, this can be done in a single JNI call, poplating the java object.<br />
To get into the java object you need to traverse over all the entries once, and if these entries are to be processed then one more scan is needed on the java object. Processing can be done only on the java side.</p>
<p>Therefore 2 scans on millions of entries. </p>
<p>In the other scenario, do a single scan over the entries, but call million times the JNI method.</p>
<p>Do you still recommend to get everything on to the java side and process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satyavathi</title>
		<link>http://kennke.org/blog/2007/07/30/efficient-jni-programming-iv-wrapping-native-data-objects/#comment-65006</link>
		<dc:creator>Satyavathi</dc:creator>
		<pubDate>Wed, 31 Dec 2008 10:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://kennke.org/blog/2007/07/30/efficient-jni-programming-iv-wrapping-native-data-objects/#comment-65006</guid>
		<description>There is native pointer that points to Huge memory. 
Will there be performance pitfall, if all the info in memory to a java object, and do processing on java code? or is it better to do processing on the fly by using the native ptr - by invoking the native methods many times.</description>
		<content:encoded><![CDATA[<p>There is native pointer that points to Huge memory.<br />
Will there be performance pitfall, if all the info in memory to a java object, and do processing on java code? or is it better to do processing on the fly by using the native ptr - by invoking the native methods many times.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olkenava &#187; Efficient JNI programming IV: Wrapping native data objects</title>
		<link>http://kennke.org/blog/2007/07/30/efficient-jni-programming-iv-wrapping-native-data-objects/#comment-55410</link>
		<dc:creator>Olkenava &#187; Efficient JNI programming IV: Wrapping native data objects</dc:creator>
		<pubDate>Mon, 05 Nov 2007 16:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://kennke.org/blog/2007/07/30/efficient-jni-programming-iv-wrapping-native-data-objects/#comment-55410</guid>
		<description>[...] read more &#124; digg story [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] read more | digg story [&#8230;]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
