Going to need a way to pass arguments into the XS function anyway, so might as well do the entire arg parsing step in XS while we're at it. Provides a significant speedup for tiny inputs as well, but I don't find that too interesting.
11 lines
146 B
Perl
11 lines
146 B
Perl
package FU::Util 0.1;
|
|
|
|
use v5.36;
|
|
use FU::XS;
|
|
use Exporter 'import';
|
|
|
|
our @EXPORT_OK = qw/json_format/;
|
|
|
|
*json_format = *FU::XS::json_format;
|
|
|
|
1;
|