Tag Archives: kb

Perl Benchmark Serializer: JSON vs Sereal vs Data::MessagePack vs CBOR

I’m working on optimization of computing and I need a fast real time message packer for storing data in Redis at light speed. So I have try several serializer, like JSON, Sereal and Data::MessagePack. And I would like to share the result. First of all, a tiny word about the different serializer. JSON is a … Continue reading Perl Benchmark Serializer: JSON vs Sereal vs Data::MessagePack vs CBOR

Proper usage of the roles in Perl

For everyone who doesn’t know it yet, you have to take care where you use “Moo::Role” (or Mouse::Role or Moose::Role). Moo::Role will export all methods that is declared after his declaration. Let me show an example : If you do :

and in your class :

You will have those methods injected : … Continue reading Proper usage of the roles in Perl