Syntactic Confectionery Delight | |
PerlMonks |
How do I tell if my code is using JSON::PP or JSON::XS?by Cody Fendant (Hermit) |
on Nov 16, 2020 at 02:41 UTC ( [id://11123677]=perlquestion: print w/replies, xml ) | Need Help?? |
Cody Fendant has asked for the wisdom of the Perl Monks concerning the following question: Things are running slowly, and one reason might be that the code is using JSON::PP and not JSON::XS? When I do Data::Dumper on some data, I’m seeing ‘JSON::PP::Boolean’ for the true/false values. Is that confirmation that the code uses PP or might that be a red herring? There is a dir for x86-linux-thread-multi/auto/JSON/XS with XS.so inside it. Does that tell us anything definitive? I thought that ‘use JSON’ would detect the availability of the XS module and use it if possible, is that correct? TIA
Back to
Seekers of Perl Wisdom
|
|