Bug 552185 - Bad performance of FileSystemResourceManager.write(IFile)

Don't call mkdir without checking if directory exists or not before -
NIO throws exceptions that will slowdown writing multiple files in same
directory.

Also added a benchmark in the form of a test. The test is not included
in automatic core.resources tests.

Change-Id: I47eeb8e87c5e9459c5df167c74c64a760a96305b
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Also-by: Christian Dietrich<christian.dietrich@itemis.de>
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2 files changed