I created the package using Moose, and I would like nstoresome large instances. The resulting binaries are very large (500 + MB), so I would like to compress them.
nstore
What is the best way to do this? Should I open the file descriptor with bzip, etc., then save with fd_nstore?
bzip
fd_nstore
With MooseX :: Storage , most of them are already made for you - you just need to specify the serialization and I / O format.
, , , .
, , , ? , , (, Moose lazy + builder lazy_build), , . , , , .
lazy
builder
lazy_build
, - Storable, STORABLE_freeze STORABLE_thaw, Storable.
STORABLE_freeze
STORABLE_thaw
. MooseX:: Storage , , , , .
Data:: Serializer. zlib ( Compress:: Zlib) PPMd ( Compress:: PPMd) .
Source: https://habr.com/ru/post/1767780/More articles:Java renameTo in content folder - javaListening for IPv6 Multicast on Linux - c ++Tips, tricks, shortcuts for using the Emigs configuration Emigs - pythonDELETE request in ajax giving 301 moved answer - jqueryDo I need to specify values ββin CSS attribute selector values? - cssJava: object oriented design; LinkedList and Stack - javaGoogle APi image not showing - javascriptLocation CSV files in Android - androidHow can I manage versions of my Perl Moose objects? - perlCSS and jQuery links navigation: how to update the class - jqueryAll Articles