Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8431d33

Browse files
committed
Fix a few typos in JIT comments and README
Reviewed-by: Abhijit Menon-SenReviewed-by: Andres FreundDiscussion:https://postgr.es/m/CAApHDvobgmCs6CohqhKTUf7D8vffoZXQTCBTERo9gbOeZmvLTw%40mail.gmail.comBackpatch-through: 11, where JIT was added
1 parentc62a0a4 commit8431d33

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

‎src/backend/jit/README

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ SQL expressions to evaluate an SQL predicate like WHERE a.col = 3, it
1010
is possible to generate a function than can be natively executed by
1111
the CPU that just handles that expression, yielding a speedup.
1212

13-
That thisisdone at query executiontime, possibly even only in cases
14-
where the relevant task is done a number of times, makes it JIT,
15-
rather than ahead-of-time (AOT). Given the way JIT compilation is used
16-
in PostgreSQL, the lines between interpretation, AOT and JIT are
17-
somewhat blurry.
13+
ThisisJIT, rather than ahead-of-time (AOT) compilation, because it
14+
is done at query execution time, and perhaps only in cases where the
15+
relevant task is repeated a number of times. Given the way JIT
16+
compilation is usedin PostgreSQL, the lines between interpretation,
17+
AOT and JIT aresomewhat blurry.
1818

1919
Note that the interpreted program turned into a native program does
2020
not necessarily have to be a program in the classical sense. E.g. it
@@ -99,7 +99,7 @@ Lifetimes of JITed functions are managed via JITContext. Exactly one
9999
such context should be created for work in which all created JITed
100100
function should have the same lifetime. E.g. there's exactly one
101101
JITContext for each query executed, in the query's EState. Only the
102-
release ofan JITContext is exposed to the provider independent
102+
release ofa JITContext is exposed to the provider independent
103103
facility, as the creation of one is done on-demand by the JIT
104104
implementations.
105105

@@ -231,7 +231,7 @@ needs to be referenced as an offset to one block of memory stored in
231231
an ExprState, rather than absolute pointers into memory.
232232

233233
Once that is addressed, adding an LRU cache that's keyed by the
234-
generated LLVM IR will allowto use optimized functions even for
234+
generated LLVM IR will allowthe usage of optimized functions even for
235235
faster queries.
236236

237237
A longer term project is to move expression compilation to the planner

‎src/include/jit/llvmjit_emit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* llvmjit_emit.h
3-
* Helpers to make emitting LLVM IR ait more concise and pgindent proof.
3+
* Helpers to make emitting LLVM IR abit more concise and pgindent proof.
44
*
55
* Copyright (c) 2018-2020, PostgreSQL Global Development Group
66
*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp