OLD | NEW |
1 | 1 |
2 Normally, when SQLite writes to a database file, it waits until the write | 2 Normally, when SQLite writes to a database file, it waits until the write |
3 operation is finished before returning control to the calling application. | 3 operation is finished before returning control to the calling application. |
4 Since writing to the file-system is usually very slow compared with CPU | 4 Since writing to the file-system is usually very slow compared with CPU |
5 bound operations, this can be a performance bottleneck. This directory | 5 bound operations, this can be a performance bottleneck. This directory |
6 contains an extension that causes SQLite to perform all write requests | 6 contains an extension that causes SQLite to perform all write requests |
7 using a separate thread running in the background. Although this does not | 7 using a separate thread running in the background. Although this does not |
8 reduce the overall system resources (CPU, disk bandwidth etc.) at all, it | 8 reduce the overall system resources (CPU, disk bandwidth etc.) at all, it |
9 allows SQLite to return control to the caller quickly even when writing to | 9 allows SQLite to return control to the caller quickly even when writing to |
10 the database, eliminating the bottleneck. | 10 the database, eliminating the bottleneck. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 static void async_mutex_enter(int eMutex); | 156 static void async_mutex_enter(int eMutex); |
157 static void async_mutex_leave(int eMutex); | 157 static void async_mutex_leave(int eMutex); |
158 static void async_cond_wait(int eCond, int eMutex); | 158 static void async_cond_wait(int eCond, int eMutex); |
159 static void async_cond_signal(int eCond); | 159 static void async_cond_signal(int eCond); |
160 static void async_sched_yield(void); | 160 static void async_sched_yield(void); |
161 | 161 |
162 The functionality required of each of the above functions is described | 162 The functionality required of each of the above functions is described |
163 in comments in sqlite3async.c. | 163 in comments in sqlite3async.c. |
164 | 164 |
OLD | NEW |