Explorar o código

Dancer: use JSON::XS for faster serialization

Dancer: ensure that the Dancer serializer will be able to use the fast JSON implementation (JSON::XS) by loading explicitely JSON::XS: if the fast implementation is not available, the app will now fail at startup.
Olivier Mengué %!s(int64=11) %!d(string=hai) anos
pai
achega
4c77831155
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      dancer/app.pl

+ 1 - 0
dancer/app.pl

@@ -4,6 +4,7 @@ use warnings;
 
 use Dancer ':syntax';
 use DBI;
+use JSON::XS;  # Ensure that the fast implementation of the serializer is installed
 
 set serializer => 'JSON';