
java語言不用擔心內存嗎

When you’re trying to get the most life out of your device, it’s easy to overthink batteries. Don’t. Plug in your devices when possible, carry a battery pack with you, and get on with your life.
當您試圖充分利用設備的使用壽命時,容易想到電池的問題。 別。 盡可能插入設備的電源,隨身攜帶電池,繼續您的生活。
A recent Reddit post by user slinky317 struck a nerve with Android users. Here’s the gist:
slinky317用戶最近在Reddit上發布的帖子震驚了Android用戶。 這是要點:
I’ve found though that my life is much better if I just assume that my battery life is going to be awful. In the car and 90% battery? Plug it in. At the office? Start charging. Out for a long day or evening? Better bring a battery pack.
但是我發現,如果我僅假設電池壽命會很糟糕,我的生活就會好很多。 在汽車和90%的電池中? 插上電源。在辦公室嗎? 開始充電。 外出漫長的一天或晚上? 最好帶電池。
It’s such a simple piece of advice you might assume it’s wrong, so I talked to my colleagues and did some research. My conclusion: this is good advice, and we should all follow it. Charge your phone or laptop whenever it’s possible—you’re not hurting anything, and you’re giving yourself the best odds of getting through the day with power.
您可能認為這是一條簡單的建議是錯誤的,所以我與同事交談并進行了一些研究。 我的結論是:這是一個很好的建議,我們都應該遵循。 盡可能為手機或筆記本電腦充電-您不會受到任何傷害,并為自己度過一天中充滿力量的最佳機會。
充電周期如何? (What About Charge Cycles?)

If you think charging your battery throughout the day sounds like a bad idea, I get it: so did I. And the reason I thought this had to do with charge cycles.?I’d heard numerous times that plugging in and unplugging your device is one charge cycle, and that a battery can only be cycled so many times before its capacity is diminished.
如果您認為全天為電池充電聽起來不是一個好主意,那我就明白了:我也是如此。我認為這與充電周期有關的原因。 我無數次聽到插入和拔出設備的信號是一個充電周期,而且在電池容量減少之前,電池只能循環使用多次。
I was missing a key point: a full cycle isn’t every time you plug in and unplug the device—it’s every time you use one battery’s worth of power. To quote Apple’s documentation:
我錯過了一個關鍵點:并不是每次插入和拔出設備都需要一個完整的周期,而是每次使用一塊電池的電量就需要一個完整的周期。 引用Apple的文檔:
For example, you could use half of your notebook’s charge in one day, and then recharge it fully. If you did the same thing the next day, it would count as one charge cycle, not two. In this way, it might take several days to complete a cycle.
例如,您可以在一天之內用掉筆記本電腦一半的電量,然后將其完全充電。 如果您第二天做同樣的事情,則將被視為一個充電周期,而不是兩個。 這樣,可能需要幾天的時間才能完成一個周期。
This means that plugging in my phone when it’s at 95 percent doesn’t count as a charge cycle; it counts as five percent of one cycle. So the next time I’m in the car with a mostly charged battery I might as well plug it in, because I’m only using up five percent of a cycle that I’m going to use up anyway. There’s no benefit in waiting, so you might as well top it off.
這意味著在手機達到95%時插入手機不會算作充電周期。 它占一個周期的百分之五。 因此,下一次我上車時電池充滿電時,我還是會插上它,因為我只用了將要用完的一個周期的百分之五。 等待沒有任何好處,所以您最好將其加滿。
電池記憶已不再是問題 (Battery Memory Isn’t a Thing Anymore)
But what about battery memory, you might be asking. I understand why, but it’s not a relevant question—we’ve debunked battery myths in the past, and this is one of them.
但是,您可能會問電池存儲器呢? 我理解為什么,但這不是一個相關的問題-我們過去揭穿電池神話,這就是其中之一。
Users of modern phones and laptops don’t need to worry about “memory,” because the lithium ion batteries we use now doesn’t have the same problem that NiMH and NiCd batteries did. In a nutshell, those older battery types did suffer a memory effect where their maximum capacity would slowly decline if they were charged regularly after only being partially discharged. For example, if you routinely let your battery drain 50% and then recharged it, over time your battery might remember this 50% charge as its maximum charge level.
現代手機和筆記本電腦的用戶無需擔心“內存”,因為我們現在使用的鋰離子電池沒有鎳氫和鎳鎘電池那樣的問題。 簡而言之,那些較舊的電池確實會產生記憶效應,如果僅在部分放電后進行定期充電,其最大容量將緩慢下降。 例如,如果您通常讓電池消耗50%的電量然后再充電,那么隨著時間的流逝,電池可能會記住這50%的電量是其最大電量。
But with lithium ion batteries, this is no longer a thing. You don’t need to fully deplete your battery on a regular basis: shallow depletions and charges are fine.
但是對于鋰離子電池,這已不再是一回事。 您不需要定期完全耗盡電池:淺層耗盡和充電就可以了。
Actually, fully depleting a modern lithium ion battery on a regular basis is pretty bad for it, and you should especially avoid allowing such batteries to stay depleted for long periods of time.
實際上,定期完全耗盡現代鋰離子電池對它來說是很不好的,您尤其應避免讓此類電池長時間耗盡。
始終攜帶電池組 (Always Carry a Battery Pack)

I was biking to a party when my phone’s battery died. I didn’t have the address handy anywhere but on my phone and was a half hour from home. I ended up knocking on strangers’ doors, asking if I could plug in long enough to see the address. Six people turned me down before someone finally hooked me up.
手機電池沒電了,我正在騎車參加聚會。 除手機外,我沒有任何方便的地址,而且離家半小時。 我最終敲開了陌生人的門,問我能否插上足夠長的時間才能看到地址。 六個人拒絕了我,直到有人最終吸引了我。
Don’t be like me. Carry a fully charged battery pack with you everywhere you go, just in case. Here’s our guide for buying one.
別像我隨身攜帶隨身攜帶的充滿電的電池組,以防萬一。 這是我們的購買指南。
專為使用電池而設計 (Your Battery Is Designed To Be Used)
I understand why people create elaborate battery rituals. Battery life is important, and it sucks to see a strong battery become crappy over time.
我了解人們為什么要制定精心的電池儀式。 電池壽命很重要,并且隨著時間的流逝,強勁的電池變得糟透了。
But spending too much time thinking about your battery’s longterm health doesn’t give you much benefit, and often means you’re not taking advantage of your battery right now. It’s better to not overthink things and generally just keep things charged.
但是,花太多時間思考電池的長期健康狀況并不能給您帶來太多好處,并且通常意味著您現在沒有利用電池。 最好不要考慮太多,而通常只是保持收費。
翻譯自: https://www.howtogeek.com/351074/dont-worry-about-your-battery-just-use-it/
java語言不用擔心內存嗎