netty5/codec-http/src/main/java/io/netty/handler/codec/http/cookie
Norman Maurer 83710cb2e1
Replace toArray(new T[size]) with toArray(new T[0]) to eliminate zero-out and allow the VM to optimize. (#8075)
Motivation:

Using toArray(new T[0]) is usually the faster aproach these days. We should use it.

See also https://shipilev.net/blog/2016/arrays-wisdom-ancients/#_conclusion.

Modifications:

Replace toArray(new T[size]) with toArray(new T[0]).

Result:

Faster code.
2018-06-29 07:56:04 +02:00
..
ClientCookieDecoder.java Fixes NPE in ClientCookieDecoder 2018-04-05 19:44:08 +02:00
ClientCookieEncoder.java Replace toArray(new T[size]) with toArray(new T[0]) to eliminate zero-out and allow the VM to optimize. (#8075) 2018-06-29 07:56:04 +02:00
Cookie.java Add a constant for Cookie "undefined maxAge" 2017-02-09 10:14:29 +01:00
CookieDecoder.java Validate cookie name and value characters Motivation: 2015-05-07 06:33:36 +02:00
CookieEncoder.java Print correct invalid character after unwrapping value in CookieEncoder 2018-06-21 08:19:01 +02:00
CookieHeaderNames.java Validate cookie name and value characters Motivation: 2015-05-07 06:33:36 +02:00
CookieUtil.java Drop broken DefaultCookie name validation, close #4999 2016-03-22 12:32:09 +01:00
DefaultCookie.java Add a constant for Cookie "undefined maxAge" 2017-02-09 10:14:29 +01:00
package-info.java Validate cookie name and value characters Motivation: 2015-05-07 06:33:36 +02:00
ServerCookieDecoder.java Misc clean up 2016-11-22 15:17:05 -08:00
ServerCookieEncoder.java Fix ServerCookieEncoder javadoc, close #7115 2017-08-28 20:21:57 +02:00