diff --git a/core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java b/core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java index 1f2f7c920c1..ef49c763cb7 100644 --- a/core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java +++ b/core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java @@ -234,9 +234,8 @@ public ResourceLibrary(String searchName, String scriptName, FileResource resour public void load(Ruby runtime, boolean wrap) { InputStream is; try { - is = new LoadServiceResourceInputStream(resource.inputStream()); - } - catch(IOException e) { + is = new BufferedInputStream(resource.inputStream(), 32768); + } catch(IOException e) { throw runtime.newLoadError("no such file to load -- " + searchName, searchName); }