Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.4
-
Fix Version/s: JRuby 1.5
-
Component/s: Extensions
-
Labels:None
-
Number of attachments :
Description
java.util.zip.GZIPInputStream is not internally buffered, so every call to read results in a JNI call to decompress a small amount of data.
By simply wrapping the GZIPInputStream in a BufferedInputStream, the inflater overhead is reduced significantly.