Hacker News new | past | comments | ask | show | jobs | submit login

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.




Did the switch? Does postgres use a VM now?


> 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...




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: