| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Aeon
On Dec 13, 2006, at 1:18 PM, Paul J. Lucas wrote:
On Dec 13, 2006, at 10:02 AM, Aeon B. C. Lee wrote:
I am writing some compression algorithms for huge data sets that have to be as fast and compact as possible, and Java Generics is simply too damn wasteful in memory usage.
Have you considered writing the code in C or C++ via JNI? Using native memory for data means you're not limited by Java's heap size either. We've (my company and I) have been doing this in our product and it works.
We allocate native blocks using vm_allocate() (under Mac OS X). Although it may not apply to your case, we then wrap the native blocks in a direct ByteBuffer (allocated using native code via env- >NewDirectByteBuffer()) and can pass this back to Java. (Of course it helps in our case that our data is naturally "block-ified" being the blocks represent tiles of an image.)
- Paul _______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden
| References: | |
| >Java Generics broken beyond repair? (From: "Aeon B. C. Lee" <email@hidden>) | |
| >Re: Java Generics broken beyond repair? (From: Jerry <email@hidden>) | |
| >Re: Java Generics broken beyond repair? (From: "Aeon B. C. Lee" <email@hidden>) | |
| >Re: Java Generics broken beyond repair? (From: "Aeon B. C. Lee" <email@hidden>) | |
| >Re: Java Generics broken beyond repair? (From: DrAnonymous <email@hidden>) | |
| >Re: Java Generics broken beyond repair? (From: "Aeon B. C. Lee" <email@hidden>) | |
| >Re: Java Generics broken beyond repair? (From: "Paul J. Lucas" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.