I have heard on the internet a lot of angry comments that Windows 7 - sucks! You see how much memory it eats up! To prove that below are given a few screenshots, and once again everyone blames the crooked hands Hindu programmers. Let's take a look what is going on over there.
Do you know how much memory the string has? I have heard all kinds of answers to this question, ranging from "do not know" to "string has 2 bytes". Here are some more questions: How much space does empty string take? How much space does the class object of Integer take? How much space will take your own class object with three Integer fields? It is funny, but none of my Java programmer friends could answer these questions ... Most of us do not need it, and nobody will think about it in the real java projects. After all, this is the same as you would not know the engine capacity of vehicle that you drive every day. You can be a great driver and did not even know what 2.4 or 1.6 means on your car. But I am sure that there are few people who are not familiar with the meaning of these numbers. So why do java programmers know so little about this part of their tool?
Integer vs int
We all know that in java - everything is an object. Except, perhaps, primitives and references to the objects themselves. Let us consider two typical situations:
The purpose of this article is to introduce and possibly awake your interest in such thing as a mnemonic. Mnemonic is any learning technique that aids memory. It has the set of methods and tricks that will help you memorize a lot of information in the proper sequence. For example, 100 random words (numbers) can be memorized consecutively with an interval in 6 seconds. Some people manage to remember a few thousand digits after pi. In addition it helps to learn a foreign language. You probably ask: "Why do we need this mnemonic?” I say: you can use it as a hobby to amaze your friends, as well you could improve your memory skills, participate in various competitions and much more, it offers endless possibilities. Therefore, I would like to introduce some most popular techniques (devices) that are used around the world.
IBM Research scientists have successfully demonstrated the ability to store one bit of information in as few as 12 magnetic atoms. Today’s disk drives use about one million atoms to store a single bit of information. The ability to manipulate matter by its most basic components — atom by atom — could lead to the vital understanding necessary to build smaller, faster and more energy-efficient devices.
High-loaded project (website) is not necessarily a popular social net, video hosting or MMORPG. The easiest way deeply to improve the website’s requirements for the hardware is transferring storage of sessions in the database. In this article we will discuss how to store data in the database and at the same time does not cut on the performance. Using a small amount of RAM we can quite well save the time of CPU. We're talking about situation when memcached is not available and other special resources of caching.
Magic MEMORY tables
DBMS MySQL database system realizes the type of tables that are stored in memory permanently and always are available for a short time. This is MEMORY, there is a synonym HEAP. The second name is older; therefore, it is preferable to use the first one.
Comparing with MyISAM or InnoDB, this format is a very limited, but it handles well the storage of operational data. Traditionally, we will give its pluses and minuses, we start with the pluses: