 Klaus Post
		
	
	
		f56cac6381
		
			
		
	
	
	
	jwt: Parse standard claims faster (#13821)
			Klaus Post
		
	
	
		f56cac6381
		
			
		
	
	
	
	jwt: Parse standard claims faster (#13821)
		
			
			* Use structless/allocationless decoding for header (note "typ" isn't used)
* Create custom unmarshal code using jsonparser for StandardClaims.
Before/After:
```
BenchmarkParseJWTStandardClaims-32    	 4270724	       294.0 ns/op	     706 B/op	      16 allocs/op
BenchmarkParseJWTStandardClaims-32    	 5634847	       214.7 ns/op	     544 B/op	       9 allocs/op
BenchmarkParseJWTMapClaims-32    	 2763045	       428.6 ns/op	    1251 B/op	      29 allocs/op
BenchmarkParseJWTMapClaims-32    	 2839455	       410.9 ns/op	    1219 B/op	      26 allocs/op
```
		
	
 
		2021-12-03 13:19:38 -08:00
	 
	
	
		 ..
	
	
	
		
			
			
			
			
			
			2021-12-03 13:15:56 -08:00
		 
	
		
			
			
			
			
			
			2021-11-16 09:28:29 -08:00
		 
	
		
			
			
			
			
			
			2021-06-01 14:59:40 -07:00
		 
	
		
			
			
			
			
			
			2021-11-19 17:54:10 -08:00
		 
	
		
			
			
			
			
			
			2021-06-01 14:59:40 -07:00
		 
	
		
			
			
			
			
			
			2021-12-03 13:15:56 -08:00
		 
	
		
			
			
			
			
			
			2021-11-16 09:28:29 -08:00
		 
	
		
			
			
			
			
			
			2021-11-16 09:28:29 -08:00
		 
	
		
			
			
			
			
			
			2021-11-16 09:28:29 -08:00
		 
	
		
			
			
			
			
			
			2021-06-01 14:59:40 -07:00
		 
	
		
			
			
			
			
			
			2021-12-01 00:38:32 -08:00
		 
	
		
			
			
			
			
			
			2021-09-07 09:57:32 -07:00
		 
	
		
			
			
			
			
			
			2021-06-01 14:59:40 -07:00
		 
	
		
			
			
			
			
			
			2021-08-18 18:35:22 -07:00
		 
	
		
			
			
			
			
			
			2021-11-29 09:06:56 -08:00
		 
	
		
			
			
			
			
			
			2021-11-01 08:03:16 -07:00
		 
	
		
			
			
			
			
			
			2021-11-17 15:48:47 -08:00
		 
	
		
			
			
			
			
			
			2021-12-03 13:19:38 -08:00
		 
	
		
			
			
			
			
			
			2021-11-16 09:28:29 -08:00
		 
	
		
			
			
			
			
			
			2021-08-18 18:35:22 -07:00
		 
	
		
			
			
			
			
			
			2021-11-24 13:53:11 -08:00
		 
	
		
			
			
			
			
			
			2021-06-01 14:59:40 -07:00
		 
	
		
			
			
			
			
			
			2021-08-18 18:35:22 -07:00
		 
	
		
			
			
			
			
			
			2021-06-01 14:59:40 -07:00
		 
	
		
			
			
			
			
			
			2021-11-16 09:28:29 -08:00
		 
	
		
			
			
			
			
			
			2021-11-30 08:42:42 -08:00
		 
	
		
			
			
			
			
			
			2021-11-16 09:28:29 -08:00
		 
	
		
			
			
			
			
			
			2021-06-01 14:59:40 -07:00