接著会继续为新的物件配置第0个层代中的记忆体,直到第0个层代已满而必须再执行另一次回收为止。
It continues to allocate memory for new objects in generation 0 until generation 0 is full and it is necessary to perform another collection.
您可以一次将产品资讯快取一整天,因为产品资讯已经在记忆体中,就可以确保较快的回应时间。
You could cache the product information for a day at a time, ensuring fast response times because the product information is already in memory.
在这个范例中,如果执行相同的查询两次,则每次都会接收到记忆体中相同物件的参考。
In this example, if you execute the same query two times, you receive a reference to the same object in memory every time.
应用推荐