Friday 18 May 2018

Java Best Practices - Collections, Primitives and Strings

Facebook
Twitter
LinkedIn
Google Plus
Email
Java Code Geeks on Steroids

Java Best Practices to follow


Char to Byte and Byte to Char conversions
We are going to talk about String performance tunning. Especially we will focus on how to handle character to byte and byte to character conversions efficiently when the default encoding is used. This article concludes with a performance comparison between two proposed custom approaches and two classic ones (the "String.getBytes()" and the NIO ByteBuffer) for converting characters to bytes and vice – versa.

String performance and Exact String Matching
We are going to talk about String performance tuning. We will focus on how to handle String creation, String alteration and String matching operations efficiently. Furthermore we will provide our own implementations of the most commonly used algorithms for Exact String Matching. Many of these algorithms can achieve far more superior performance compared to the naive approach for exact String matching available with the Java Development Kit. This article concludes with a performance comparison between the aforementioned Exact String Matching algorithms.

Queue battle and the Linked ConcurrentHashMap
We are going to perform a performance comparison between four popular Queue implementation classes with relevant semantics. To make things more realistic we are going to test against a multi–threading environment so as to discuss and demonstrate how to utilize ArrayBlockingQueue, ConcurrentLinkedQueue, LinkedBlockingQueue and/or LinkedList for high performance applications.

Vector vs ArrayList vs HashSet
We are going to perform a performance comparison between the three probably most used Collection implementation classes. To make things more realistic we are going to test against a multi–threading environment so as to discuss and demonstrate how to utilize Vector, ArrayList and/or HashSet for high performance applications.

Till the next time, enjoy...!!
Your Suggestions
Any ideas or suggestions? Shoot us an email at newsletter@javacodegeeks.com
Copyright © 2018 Exelixis Media P.C., All rights reserved.
You are receiving this email because you opted in at our website(s) www.javacodegeeks.com, examples.javacodegeeks.com

Our mailing address is:
Exelixis Media P.C.
Nafpaktias 18
Kesariani, Attica 16121
Greece

Add us to your address book
unsubscribe from this list    update subscription preferences

No comments:

Post a Comment