sergot / openssl

OpenSSL bindings for Perl 6
MIT License
14 stars 31 forks source link

Use reallocate+slice instead of infix:<~> in read #56

Closed MasterDuke17 closed 6 years ago

MasterDuke17 commented 6 years ago

infix:<~> creates new Bufs, so reallocate+slice is less memory hungry.

MasterDuke17 commented 6 years ago

Saves another ~180MiB maxrss on top of https://github.com/sergot/openssl/pull/55 when running https://gist.github.com/AlexDaniel/0cdb3211cfcae90c29da9330649171c2.