Skip Menu |

This queue is for tickets about the REST-Neo4p CPAN distribution.

Report information
The Basics
Id: 79863
Status: resolved
Priority: 0/
Queue: REST-Neo4p

People
Owner: Nobody in particular
Requestors: chessvegas [...] chessvegas.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Why not JSON::XS?
Date: Wed, 26 Sep 2012 16:06:01 +0400
To: bug-rest-neo4p [...] rt.cpan.org
From: DOBRO Sergei <chessvegas [...] chessvegas.com>
Hi,
 
I noticed that REST::Neo4p uses "JSON" module. Why not to use JSON::XS? It's much faster.
 
Thanks.
On Wed Sep 26 08:06:17 2012, chessvegas@chessvegas.com wrote: Show quoted text
> Hi, I noticed that REST::Neo4p uses "JSON" module. Why not to use
JSON::XS? Show quoted text
> It's much faster. Thanks.
Thanks cv- My understanding is that, if JSON::XS is available, JSON will load it and use it automagically- so, using JSON in this code will work for the pure perl people as well as the XS people. MAJ
From the JSON pod: "When you use JSON, JSON tries to use JSON::XS. If this call failed, it will uses JSON::PP. The required JSON::XS version is 2.2 or later." So use JSON default to use JSON::XS if you have it- MAJ