Congrats on releasing this! I could compile & run this on my machine, works just fine. I'm a but confused about the use case. Bat opens a larger file in less or something, so I can jump through there and search for stuff. Clp doesn't do that, it just prints the files content with syntax highlighting. But sure, I can just type this:
clp sqlite3.c | less -r
But when I do this, at least on my machine, bat feels a lot faster! The file reader opens up way faster. I guess what you're measured is something like:
time bat --color=always sqlite3.c > /dev/null
time clp sqlite3.c > /dev/null
With these commands, clp is actually 15 times faster, so I get the same measurement as you. But what is the use case for this? Are you piping the output of bat into something? In the beginning you explained your use case, but I didn't really get it.
Anyways, cool project! Should totally have a click bait title like "rewriting rust apps in lua makes them 15x faster."