wilyarti / hashtree Goto Github PK
View Code? Open in Web Editor NEWS3 compatible data deduplication and client side encryption program
License: BSD 2-Clause "Simplified" License
S3 compatible data deduplication and client side encryption program
License: BSD 2-Clause "Simplified" License
The memory climbs up to 1.9GiB when using the push function.
Using pprof the cause seams to be the minio package:
(pprof) top
Showing nodes accounting for 1.12GB, 99.59% of 1.13GB total
Dropped 56 nodes (cum <= 0.01GB)
flat flat% sum% cum cum%
1.12GB 99.59% 99.59% 1.13GB 99.68% github.com/minio/minio-go.Client.putObjectMultipartStreamNoLength
0 0% 99.59% 1.13GB 99.68% github.com/minio/minio-go.Client.PutObject
0 0% 99.59% 1.13GB 99.68% github.com/minio/minio-go.Client.PutObjectWithContext
0 0% 99.59% 1.13GB 99.68% github.com/minio/minio-go.Client.putObjectCommon
0 0% 99.59% 1.13GB 99.73% hashtree/uploadFiles.UploadFile
The cause is this line (195):
size, err := s3Client.PutObject(bucket, hash, encrypted, -1, minio.PutObjectOptions{})
The -1 flag cause minio to treat the file as a stream with an unknown length.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.