Commit graph

57 commits

Author SHA1 Message Date
Yorhel
8ef2a724d1 jsonfmt: Move arg parsing into XS
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.
2025-01-29 11:42:15 +01:00
Yorhel
e0161cd22c jsonfmt: Add error reporting 2025-01-29 11:02:35 +01:00
Yorhel
3ae9347ad2 bench: Cache benchmark results + better re-run filtering 2025-01-29 10:19:51 +01:00
Yorhel
12326ca8e4 jsonfmt: Fix threading support + memory leak bug 2025-01-28 19:20:46 +01:00
Yorhel
9c8ce3f782 Add benchmarking tool + improve integer formatting performance
Typical priorities: make it fast before fixing all the bugs. *shrug*
2025-01-28 15:02:32 +01:00
Yorhel
c16a9fa493 Add initial JSON formatter
It works and can format all "plain" Perl data, but has a few known bugs
and limitations that still need to be worked out.

It's about 8x smaller than JSON::XS's encoder and *much* smaller than
Cpanel::JSON::XS, but this is just a first attempt, it'll grow.
2025-01-28 09:33:29 +01:00
Yorhel
9c80f2465a Init 2025-01-26 15:32:47 +01:00