4 ms·
I did the switch from a tree walk interpreter to a VM in postgres - it did lead to substantial speedups. I've experimented with lowering into x86 "manually" as
by anarazel 3y ago
I did the switch from a tree walk interpreter to a VM in postgres - it did lead to substantial speedups.
I've experimented with lowering into x86 "manually" as well, and it did provide gains, but the portability aspects are concerning. And for much of the desirable speedups you ime want more optimization than trivial lowering would give you.
Either way, without the tree walk -> VM move, it'd have been much harder to lower into x86 directly. And you'd still need a fallback for other platforms.
- subleq 3y agoDid the switch? Does postgres use a VM now?
- anarazel 3y ago> Did the switch? Does postgres use a VM now? Yes (to me my comment seemed to make that clear, but...). Didn't really remember how long ago that was, so I dug up the commit. Main commit went in ~6.5 years ago. There were lots of related changes but the main commit is https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=b8d7f053c5c https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit...