| From: | Soumyadeep Chakraborty <soumyadeep2007(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | JIT: Optimize generated functions earlier to lower memory usage |
| Date: | 2019-10-07 01:38:19 |
| Message-ID: | CAE-ML+_OE4-sHvn0AA_qakc5qkZvQvainxwb1ztuuT67SPMegw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hello,
This is to introduce a patch to lower the memory footprint of JITed
code by optimizing functions at the function level (i.e. with
function-level optimization passes) as soon as they are generated.
This addresses the code comment inside llvm_optimize_module():
/*
* Do function level optimization. This could be moved to the point where
* functions are emitted, to reduce memory usage a bit.
*/
LLVMInitializeFunctionPassManager(llvm_fpm);
--
Soumyadeep (Deep)
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Optimize-generated-functions-earlier-to-lower-mem.patch | application/octet-stream | 6.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2019-10-07 02:00:02 | Re: How to retain lesser paths at add_path()? |
| Previous Message | Michael Paquier | 2019-10-07 01:06:51 | Re: Two pg_rewind patches (auto generate recovery conf and ensure clean shutdown) |