RFR [8014657] CheckedInputStream.skip allocates temporary buffer on every call (original) (raw)
Ivan Gerasimov ivan.gerasimov at oracle.com
Wed May 15 15:40:50 UTC 2013
- Previous message: hg: jdk8/tl/jdk: 8013730: JSR 310 DateTime API Updates III
- Next message: RFR [8014657] CheckedInputStream.skip allocates temporary buffer on every call
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello!
Please have a chance to review a simple change proposal.
CheckedInputStream.skip() allocates temporary buffer on every call. It's suggested to have a temporary buffer that is initialized on the first use and can be reused during subsequent calls to the skip() function. Many other input streams already use the same approach.
http://cr.openjdk.java.net/~dmeetry/8014657/webrev.0/ <http://cr.openjdk.java.net/%7Edmeetry/8014657/webrev.0/>
Sincerely, Ivan
- Previous message: hg: jdk8/tl/jdk: 8013730: JSR 310 DateTime API Updates III
- Next message: RFR [8014657] CheckedInputStream.skip allocates temporary buffer on every call
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]