| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
resource.getInputStream always returns a LoadServiceResourceInputStream so constructing another is just a waste of time.
InputStream.readAllBytes was added in Java 9, and when possible it detects the exact size of the incoming file or stream and allocates only a single array to read all. This avoids the old logic that allocated n + 1 arrays based on the read chunk size.
| Back | FazBrowse Home | New Git URL |
Just a few tweaks based on some recent profiling of JRuby 10, both doing a simple hello world jruby -e gets and spinning up JRuby instances in a tight loop.