comparison xml/en/docs/njs/preload_objects.xml @ 3002:48f245493600

Slightly updated text in Preload Objects in njs.
author Yaroslav Zhuravlev <yar@nginx.com>
date Fri, 18 Aug 2023 22:43:49 +0100
parents cc475ba7d406
children
comparison
equal deleted inserted replaced
3001:7c3182a95cd6 3002:48f245493600
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> 7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd">
8 8
9 <article name="Understanding preloaded objects" 9 <article name="Understanding preloaded objects"
10 link="/en/docs/njs/preload_objects.html" 10 link="/en/docs/njs/preload_objects.html"
11 lang="en" 11 lang="en"
12 rev="1" 12 rev="2"
13 toc="no"> 13 toc="no">
14 14
15 <section id="summary"> 15 <section id="summary">
16 16
17 <para> 17 <para>
18 For each incoming request njs creates a separate virtual machine. 18 For each incoming request njs creates a separate virtual machine.
19 This brings a lot of benefits such as predictable memory consumption 19 This brings a lot of benefits such as predictable memory consumption
20 or requests isolation. 20 or requests isolation.
21 </para> 21 However, as all requests are isolated,
22
23 <para>
24 However, it also has its own downsides.
25 Since all requests are isolated,
26 if a request handler needs to access some data, 22 if a request handler needs to access some data,
27 it has to read it by itself. 23 it has to read it by itself.
28 This is not efficient especially when the amount of data is large. 24 This is not efficient especially when the amount of data is large.
29 </para> 25 </para>
30 26