Looks like SQLite could benefit from copy-and-patch JIT compiler.
It also would be quite a challenge given their long-term-support statement (https://www.sqlite.org/lts.html):
“Cross-platform Code → SQLite runs on any platform with an 8-bit byte, two's complement 32-bit and 64-bit integers, and a C compiler. It is actively tested on all currently popular CPUs and operating systems. The extreme portability of the SQLite code and file format will help it remain viable on future platforms.”
https://sillycross.github.io/assets/copy-and-patch.pdf
It has great potential for many applications, if not this particular one.