minio/pkg
Anis Elleuch 6542bc4a03
sql, csv: Cache some values between Read() calls to gain performance (#9645)
Below is the benchmark enhancement after this commit:

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%

benchmark                                            old allocs     new allocs     delta
BenchmarkRead-8                                      26             16             -38.46%
BenchmarkReadWithFieldsPerRecord-8                   26             16             -38.46%
BenchmarkReadWithoutFieldsPerRecord-8                26             16             -38.46%
BenchmarkReadLargeFields-8                           36             24             -33.33%
BenchmarkReadReuseRecord-8                           16             6              -62.50%
BenchmarkReadReuseRecordWithFieldsPerRecord-8        16             6              -62.50%
BenchmarkReadReuseRecordWithoutFieldsPerRecord-8     16             6              -62.50%
BenchmarkReadReuseRecordLargeFields-8                24             12             -50.00%

benchmark                                            old bytes     new bytes     delta
BenchmarkRead-8                                      672           664           -1.19%
BenchmarkReadWithFieldsPerRecord-8                   672           664           -1.19%
BenchmarkReadWithoutFieldsPerRecord-8                672           664           -1.19%
BenchmarkReadLargeFields-8                           3948          3936          -0.30%
BenchmarkReadReuseRecord-8                           32            24            -25.00%
BenchmarkReadReuseRecordWithFieldsPerRecord-8        32            24            -25.00%
BenchmarkReadReuseRecordWithoutFieldsPerRecord-8     32            24            -25.00%
BenchmarkReadReuseRecordLargeFields-8                2988          2976          -0.40%
2020-05-22 10:15:08 -07:00
..
auth fix: remove LDAP groups claim and store them on server (#9637) 2020-05-20 11:33:35 -07:00
bpool Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
bucket bypass flag: Allow object retention removal (#9677) 2020-05-22 09:38:58 -07:00
certs print proper certinfo on console when starting up (#9479) 2020-04-30 16:15:29 -07:00
cgroup Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
color Bring in safe mode support (#8478) 2019-11-09 09:27:23 -08:00
console simplify usage of mutexes and atomic constants (#9501) 2020-05-03 22:35:40 -07:00
csvparser sql, csv: Cache some values between Read() calls to gain performance (#9645) 2020-05-22 10:15:08 -07:00
disk Fix Windows memory leak (#9680) 2020-05-22 08:26:43 -07:00
dsync enable full linter across the codebase (#9620) 2020-05-18 09:59:45 -07:00
ellipses Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
env fix: add missing copyright headers in some files (#9321) 2020-04-12 13:55:22 -07:00
event enable full linter across the codebase (#9620) 2020-05-18 09:59:45 -07:00
handlers re-implement data usage crawler to be more efficient (#9075) 2020-03-18 16:19:29 -07:00
hash add comment on exported error 2020-05-15 18:17:54 -07:00
iam/policy enable full linter across the codebase (#9620) 2020-05-18 09:59:45 -07:00
ioutil add option for O_SYNC writes for standalone FS backend (#9581) 2020-05-12 19:24:59 -07:00
lock re-implement data usage crawler to be more efficient (#9075) 2020-03-18 16:19:29 -07:00
madmin fix madmin SetBucketQuota API signature (#9669) 2020-05-21 14:45:12 -07:00
mimedb Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
mountinfo Cache Windows mount point info (#8572) 2019-11-27 20:10:13 +05:30
net fix: re-use connections in webhook/elasticsearch (#9461) 2020-04-28 13:57:56 -07:00
pubsub fix simplify code to start using context (#9350) 2020-04-16 10:56:18 -07:00
quick Start using error wrapping with fmt.Errorf (#8588) 2019-12-02 09:28:01 -08:00
s3select enable full linter across the codebase (#9620) 2020-05-18 09:59:45 -07:00
safe Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
sync/errgroup Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
sys Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
trace Cleanup ResponseWriter function for audit and trace (#8283) 2019-09-24 02:04:28 +05:30
trie Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
wildcard Simplify cast of string to rune slice in wildcard matching (#9577) 2020-05-14 08:20:13 -07:00
words Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00