diff --git a/pkg/argon2/argon2.go b/pkg/argon2/argon2.go index f823c5ad3..90c048b61 100644 --- a/pkg/argon2/argon2.go +++ b/pkg/argon2/argon2.go @@ -35,11 +35,15 @@ // [1] https://github.com/P-H-C/phc-winner-argon2/blob/master/argon2-specs.pdf // [2] https://tools.ietf.org/html/draft-irtf-cfrg-argon2-03#section-9.3 // -// This package is a fork of golang.org/x/crypto/argon2 adding support for -// sync.Pool reusable buffers to avoid large memory build up with frequent -// allocations done by memory hard PBKDF. +// Copyright 2021 MinIO, Inc. All rights reserved. +// forked from https://golang.org/x/crypto/argon2 +// modified to be used with MinIO under GNU Affero General +// Public License 3.0 license that can be found in +// the LICENSE file. // -// All the changes are governed by the LICENSE file MinIO project. +// Modification here specifically adds sync.Pool reusable buffers to +// avoid large memory build up with frequent +// allocations done by memory hard PBKDF. package argon2 import ( diff --git a/pkg/csvparser/reader.go b/pkg/csvparser/reader.go index c5d75c128..15102c464 100644 --- a/pkg/csvparser/reader.go +++ b/pkg/csvparser/reader.go @@ -49,6 +49,25 @@ // // {`Multi-line // field`, `comma is ,`} +// +// Copyright 2021 MinIO, Inc. All rights reserved. +// forked from https://golang.org/pkg/encoding/csv +// modified to be used with MinIO under GNU Affero General +// Public License 3.0 license that can be found in +// the LICENSE file. +// +// Main modifications include +// - Configurable 'quote' parameter +// - Performance improvements +// benchmark old ns/op new ns/op delta +// BenchmarkRead-8 2807 2189 -22.02% +// BenchmarkReadWithFieldsPerRecord-8 2802 2179 -22.23% +// BenchmarkReadWithoutFieldsPerRecord-8 2824 2181 -22.77% +// BenchmarkReadLargeFields-8 3584 3371 -5.94% +// BenchmarkReadReuseRecord-8 2044 1480 -27.59% +// BenchmarkReadReuseRecordWithFieldsPerRecord-8 2056 1483 -27.87% +// BenchmarkReadReuseRecordWithoutFieldsPerRecord-8 2047 1482 -27.60% +// BenchmarkReadReuseRecordLargeFields-8 2777 2594 -6.59% package csv import (