Using the Shared memory object for writing.
使用共享内存对象写数据。
Create your Shared memory object as shown in Listing 2.
像清单2这样创建共享内存对象。
If the Shared memory object cannot be found, an exception is thrown.
如果无法找到这个共享内存对象,就会抛出异常。
Memcached is a high-performance, distributed memory object caching system.
memcached是一个高性能、分布式的内存对象缓存系统。
We used the Memory Object, Pages per Second Counter, to measure performance.
我们使用内存对象PagesperSecond Counter来衡量性能。
It retains all the content and references structure of the original in-memory object.
它包含了原始内存中对象的所有内容和引用结构。
Because this process modifies the contents of the Shared memory object, you use read_write.
因为这个进程要修改共享内存对象的内容,所以使用read _ write。
Your first step in creating an in-memory object hierarchy is to create an object factory.
创建内存对象层次结构的第一步是创建一个对象工厂。
In Listing 4, you create the Shared memory object using the open_only and read_only attributes.
在清单4中,使用open_only和read_only属性创建共享内存对象。
This technique may end up only being applicable when using very large, in memory object collections.
这个技术目前只在使用大型的内存对象集合的情况下才可用。
For a process to use a Shared memory object, the process has to map the object in its address space.
使用共享内存对象的进程必须在自己的地址空间中映射对象。
Now take a look at the the reverse process — building an in-memory object model from a data stream.
现在看看相反的过程,从数据流建立内存对象模型。
Another benefit of using mapped_region is that both full and partial access to the Shared memory object is possible.
使用mapped_region的另一个好处是可以对共享内存对象进行完全和部分访问。
For example, if the Shared memory object cannot be created, an exception of type boost: : interprocess_exception is thrown.
例如,如果无法创建共享内存对象,就抛出类型为boost: interprocess_exception的异常。
In Figure 1, step 5 creates a component model. This allows a pairing of the XML node (now an in-memory object) with a GUI component.
在图1中,步骤5创建了一个组件模型,支持将这个XML节点(现在是内存对象)和一个GUI组件组成一对。
The other form of XML parsing is DOM (Document object model) -based, which forms an in-memory object model of the full XML structure.
xml解析器的另一个形式是基于DOM (DocumentObjectModel)的,它形成了完整XML结构的内存中的对象模型。
Similar to the case for a Shared memory object, a message queue that is opened only for reading will have the open_only attribute passed in the constructor.
与共享内存对象相似,对于以只读方式打开消息队列,应该把open_only属性传递给构造函数。
For every XUINode (the in-memory object representing any XML element) read in by the framework, a XUIComponent must be created to encompass the XUINode.
对于框架读入的每个XUINode(表示任意xml元素的内存对象),必须创建一个XUIComponent来包围XUINode。
When the object is later re-created from its byte string, it will be a new in-memory object identical in structure and value to the original, though located at a different memory address.
当对象后来从其字节串重建时,内存中新建的对象与原对象具有相同的结构和值,但位于不同的内存地址。
The object of great interest at the temple was a large marble tower built in memory of Buddha.
那庙里使人极感兴趣的东西是一座为纪念佛陀而修建的大理石巨塔。
A perfect tradeoff will be gained among the object accessing performance, the memory utilization and the Java chip system simplicity.
在对象访问速度,内存利用率和Java芯片系统复杂度之间合理折衷。
As we hinted in our last example, objects are only identical if they refer to the same object in memory.
正如在上一个示例所暗示的,只有在这些对象引用内存中同一个对象时,它们才是相同的。
From that you can recreate an object from the database, or place an object from memory into the database.
这样您就可以从数据库重新创建对象,或者将对象从内存放入数据库。
In doing so, you also need to allocate memory and create the object.
然而这样做,您也需要分配内存和创建对象。
We focused on improving the memory usage per object.
我们集中精力改进每个对象的内存使用。
This might be important in large applications that support many different types of functionality, since the memory for the object is only allocated if the class is actually used.
这在支持很多不同类型功能的大型应用程序中可能很重要,因为只有在实际使用该类时,才会分配对象的内存。
For two objects to be identical, they have to be the same object in memory.
两个对象要相同,它们必须在内存中是同一个对象。
This allows you to take action just prior to the object memory being reclaimed.
这使您能够刚好在对象占用的内存被回收之前采取行动。
You never have to worry about double-freeing memory or object lifetimes.
您永远不必担心内存的双重释放或者对象的生命周期。
The issue was caused by a custom tag engine, that kept large object lists in memory.
问题是由自定义标签引擎引起的,它会在内存中存放大型对象列表。
应用推荐