Over a million developers have joined DZone.

The Best of the Week (May 23): Performance Zone

DZone's Guide to

The Best of the Week (May 23): Performance Zone

· Java Zone
Free Resource

Managing a MongoDB deployment? Take a load off and live migrate to MongoDB Atlas, the official automated service, with little to no downtime.

Make sure you didn't miss anything with this list of the Best of the Week in the Performance Zone (May 23 to May 30). Here they are, in order of popularity:

1. String Interning - What, Why and When ?

Though Java automatically interns all Strings by default, remember that we only need to intern strings when they are not constants, and we want to be able to quickly compare them to other interned strings.

2. Java File I/O Basics

In the rest of this post I will provide some code samples that show how you can accomplish common file related tasks with Java 7 or newer.

3. Java conccurency: a brief overview

This is a brief overview on my concurrency explained using an example on transactions over bank accounts. This example is based in the producer / consumer design pattern in order to simulate real time transactions activity.

4. Grails Goodness: Exception Methods in Controllers

Since Grails 2.3 we can define exception methods in our controllers to handle exceptions raised by code invoked in the action methods of the controllers.

5. Code parallelization with joblib

Recently I've been working on the parallelization of some Python code and I discovered Joblib. It is a library that supports pipelining and offers a good support for parallelization. In this post we will implement a (very naive) paraller matrix by matrix multiplication algorithm to show the parallelization capabilities of this library.

MongoDB Atlas is the easiest way to run the fastest-growing database for modern applications — no installation, setup, or configuration required. Easily live migrate an existing workload or start with 512MB of storage for free.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}