Brian Burkhalter
Brian Burkhalter
Further performance testing was conducted for the case where the native read and write functions used a fixed, stack-allocated buffer of size 8192. The loops were moved up into the...
This change would increase throughput at the expense of the additional complexity of a new loop in the native `readBytes()` function; a loop was already present in the native `writeBytes()`...
The following benchmark results are for commit e6f3b4574b1c49955e5acaca618a3083eb132e05 with 5 warmup iterations of 5 seconds each, followed by 10 measurement iterations of 10 seconds each on a MacBookPro16,1. ``` FileInputStream.read(byte[])...
Using the temporary direct buffer cache to provide intermediate native memory is not a good solution as direct memory may be limited. Hence the patch is reverted to its prior...
Moving to draft.
PR 2319 was unexpectedly deleted when its branch was renamed and cannot be reopened. It may still be referred to for background information however. This PR as-is is not considered...
Various alternatives for `getExtension()` were enumerated in [PR 2319](https://github.com/openjdk/jdk/pull/2319#issuecomment-772092416). Other, related methods are also possible. Here is a list of potential methods: 1. `Path getExtension(Path default)` returns the extension retaining...
Some perhaps somewhat contrived examples of using the methods enumerated above are listed below. These code samples have neither been compiled nor tested. **getExtension - Reading an image file** ```...
@RogerRiggs Thanks for the comments. I tend to agree with you about using `String` and not `Path` to represent an extension. I do not see what value it would add...
Commit 4adf810d060138e50d7ce2266e4299645149dd89 adds to `Path` the default methods `hasExtension()` and ` replaceExtension()`, and overrides of `replaceExtension()` using the native path representation in `UnixPath` and `ZipPath`. Unfortunately the latter override is...