Our garbage problem is not new, but as the world's population continues to grow, it will become a bigger and bigger problem.
我们的垃圾问题不是新问题,但随着世界人口的持续增长,它将成为一个越来越大的问题。
Three years ago, when the clean-up started, garbage was everywhere, but this year, the teenagers had to hunt for garbage.
三年前,当清理工作刚开始时,垃圾随处可见;但今年,青少年们不得不主动去寻找垃圾。
Therefore, if the garbage collector runs after this line, but before line //2, the object will not be reclaimed.
因此,如果垃圾收集器在该行之后(但在行 //2之前)运行,该对象就不会被回收。
We were in the kitchen making a grocery list, not the kitchen where the garbage game was played, but still. Kitchens for us remain problematic.
我们在厨房里准备一个杂货清单,不是那个玩垃圾游戏的厨房,但厨房对我们仍然有着问题的意味。
Thus the garbage collector can reclaim most of the memory allocated on each loop, but it can't reclaim the arrays that are added to the list.
因此,垃圾收集器可以回收在每个循环上分配的大多数内存,但它不能回收添加到列表中的数组。
Knowing how much time your system spends in GC is all well and good, but how does more time spent doing garbage collection actually affect the performance of your system?
了解您的系统将多少时间花费在垃圾收集上,这是很有必要的,但是将过多的时间花费在垃圾收集上将会对系统的性能产生怎样的影响呢?
Such excessive memory usage does not necessarily have a performance impact, but when the JVM's garbage collection takes place, the responsiveness of the affected applications can suffer dramatically.
这种过量内存使用并不一定会影响性能,但当jvm的垃圾收集功能执行时,受影响的应用程序的响应能力将大幅降低。
But after just 30 minutes of sifting through the garbage mountain, he struck lucky when he spotted a tiny glimmer surrounded by black sludge, wedged between two brown bags.
在垃圾堆里翻找了30分钟后,他非常幸运看到黑色淤渣里微微透出一丝闪光,戒指被夹在两只棕色袋子之间。
For example, object pooling reduces the amount of garbage generated by an application but can seriously hurt garbage collection performance.
例如,对象轮询会减少应用程序生成的垃圾数量,但严重降低了垃圾收集的性能。
You don't see it, but there is a huge amount of waste, the garbage that is packed around items to get them from one country to another without breaking.
你不知道,从一个国家运往另一个国家的商品,为了防止破碎,会被一层层包装起来,而这些用来包装商品所产生垃圾就造成了巨大的浪费。
Normally, the file system operates very quickly, but when garbage collection is required, performance slows down.
一般情况下,这种文件系统非常快,但是一旦需要进行垃圾收集,性能就会慢下来。
Setting to the latter may increase the incidences of garbage collection and make more pages available, but may impact performance.
设置为后者可以提高垃圾收集的效果,让更多页面可用,但是可能影响性能。
Repeatedly creating and throwing out objects carries very little performance overhead, but holding onto existing object instances for reuse creates significant work for the garbage collector.
重复创建并丢弃对象的方法产生很小的性能开销,而持有现有对象实例以便重用的方法则为垃圾收集器增加大量的工作负担。
More generally, holding on to object references that could be discarded reduces the amount of generated garbage but tends to hurt GC.
通常,持有可以丢弃的对象引用会减少生成的垃圾数量,但是这样会损害GC。
The problem faced by all garbage collection algorithms is the same -- identify blocks of memory that have been dispensed by the allocator, but are unreachable by the user program.
所有垃圾收集算法所面临的问题是相同的 ――找出由分配器分配的,但是用户程序不可到达的内存块。
For example, a server is not going to be generating much garbage if all of its clients are disconnected, but that doesn't mean that the server needs to be tuned.
例如,如果所有客户机都断开连接,服务器将不会生成大量垃圾,但是这并不意味着需要调整服务器。
I had gone to the beach to enjoy nature but instead I ended up picking up garbage there.
我原打算到海滩来享受自然,但最终却在那儿捡拾垃圾。
In 2004 the Wrangel Island was given a status of the area of World Natural Inheritance but with one condition - to clean the territory from the garbage.
2004年,弗兰格尔岛被列入世界自然遗产地区,但条件是——清除该地区的垃圾。
'you expect your parents to have food for you, but the kitchen table and counters were just cluttered with garbage,' she says.
她说,你希望父母给你做吃的,但餐桌和橱柜上全都是垃圾。
They can make the difference between a successful data warehouse and a "data garbage dump," where gigabytes of data are stored but unusable.
这就区分了成功的数据仓库和“数据垃圾堆”,那里存储着大量的无用数据。
He was frantically searching through the garbage, but he couldn't find the elephant.
他手忙脚乱地在垃圾桶里翻着,没有看到小象。
But that doesn't mean post-menopausal women should toss their multivitamins in the garbage.
但是,这并不意味着停经后的女性们就应该就此把那些综合维生素试剂都扔到垃圾箱去。
In other words, Garbage-First is not a hard real-time collector - it meets the soft real-time goal with high probability but not absolute certainty.
换句话说,Garbage - First并不是一个纯粹的实时收集器——它以高概率但不绝对地满足软实时目标。
But as a result, the buffer is never released because it is always reachable by the program (unless the LeakyChecksum object is garbage collected).
但是结果是,缓冲区永远不会被释放,因为它对程序来说总是可及的(除非leakychecksum对象被垃圾收集了)。
It certainly doesn't have everything-or even most things-that I want, but I rarely feel like I'm wasting my time watching garbage.
当然它不可能有全部或者绝大多数我想要的东西,但是它从不会让我感觉把时间浪费在一些垃圾节目上。
This creates significant extra work for the mutator and garbage collector, but permits much shorter collection pauses.
这为赋值函数(mutator)和垃圾收集器带来了大量的额外工作,但是可以得到更短的收集暂停。
The first version of NILFS (version 1) appeared in 2005 but lacked any form of garbage collection.
第一版的NILFS(version1)出现于 2005 年,这个版本没有任何形式的垃圾收集。
A great book might not be popular but if it is on the Amazon bestseller list it usually isn't complete garbage.
一本好书或许并不流行,但是能够出现在Amazon畅销书榜上的书一般都不会是彻头彻尾的垃圾。
A great book might not be popular but if it is on the Amazon bestseller list it usually isn't complete garbage.
一本好书或许并不流行,但是能够出现在Amazon畅销书榜上的书一般都不会是彻头彻尾的垃圾。
应用推荐