As a professor and mentor, Zhang Ke was very satisfied with Su Xiaomu's erudite and thoughtful thinking.
Holding the thermos cup in both hands, Zhang Ke was greedy for the smell of wolfberry + angelica soaked in water. He pondered for a while and said something off-topic.
"I always feel like you have something that you haven't said yet."
After saying that, he waved his hand again, obviously not wanting to go into details, and then said,
"A carefully selected algorithm can indeed achieve some of the effects you just mentioned on greatly improving program running performance and improving submission processing efficiency. However, as you once said, the algorithm will not be perfect.
"
Zhang Ke slowly elaborated on some empirical and theoretical ideas based on his own experience and perspective.
"For example, when standing in line, people sorted by height will appear more orderly. If there are many people with almost the same height standing in a line at first glance, it will undoubtedly make the queue look choppy.
At this time, only by standing at a higher place and making adjustments will it look neat. What the algorithm has to do is to perform such subtle processing. How to make such subtle processing more effective is one of the difficulties..."
"..."
Su Xiaomu nodded while thinking:
It's like there are always people who say that deep love is not as good as long-term companionship, but they forget about love at first sight.
For example, it was obviously Su Xiaomu who Shang Siyu met first, but now it is Lin Tang who has more opportunities to tease or do other things. There are so many first-come, first-served.
Reflecting on the Android file system that Su Xiaomu operates, the main contradiction is that no matter how many apps there are, no matter how randomly they read and write storage space, the ultimate goal is to make this very efficient and not lag.
Android phones have gone through many versions since their development, and the hardware and systems have undergone countless changes, but they have always been unable to satisfy the infinite expansion of a wide variety of apps.
No matter how many high-end hardware is added, how many bugs are solved in the system, and how many modules are optimized, there will always be lags.
Putting aside some additional factors, the reflection at the software level itself is actually that the response efficiency of the app when reading and writing storage space is not enough.
When the app is opened, the information of the app itself must be read, and it must go through a series of processes:
Access the corresponding directory in the storage space, read the data, feed it back to the app itself, and then display the content.
What Su Xiaomu wants to do is very simple. Modify the file system to use a better data structure to make the app respond more efficiently. The final solution is to solve the long-standing big problem of lagging.
"In this case, we must first weigh the pros and cons and consider sacrificing some performance or efficiency." Su Xiaomu frowned slightly and said subconsciously.
He found that Android lags are not without reason. Everyone wants ultimate performance and efficiency, and also wants stability.
To weigh the pros and cons between the two, you must sacrifice performance or efficiency in exchange for stability.
Thinking of this, Su Xiaomu almost lost all confidence.
What so many people around the world cannot handle, can I, a college student, handle it?
If it weren't for his cheating and handsome appearance, Su Xiaomu would have really given up.
Zhang Ke continued, "...Sacrifice is inevitable..."
Su Xiaomu added, "The idea of carefully selecting algorithms to make the data structure better is definitely correct."
Tan Ling pushed up the glasses on the bridge of his nose, "Of course the idea is correct, but..."
Zhang Ke also expressed his opinion, "The design of the algorithm is like this, always trying to get the best of both worlds..."
When Su Xiaomu, Zhang Ke, and Tan Ling were discussing something exciting, Lin Tang struck up a conversation.
"When it comes to data structure algorithms, Junior Xiaomu, you seem to be better than us, right?"
Zhang Ke: "..."
I'd better drink my wolfberry and angelica water. I'm getting old, so maintenance is important.
Tan Ling: "..." You're right. Didn't we discuss algorithms before? Why are you trying to do the same thing now?
Su Xiaomu: "..."
"Thank you, professor, senior, I have benefited a lot." Su Xiaomu quickly smiled and thanked.
The discussion was so exciting that it seemed like I was accidentally showing off.
Under tremendous pressure, Su Xiaomu fled from the subject laboratory.
From the beginning, Su Xiaomu never thought that Professor Zhang Ke or the seniors would be able to solve all his doubts. Academically, he was very good at it.
After all, he is someone who has experienced cheating.
Su Xiaomu just wanted to open up more ideas, so he gained quite a lot today.
First of all, Su Xiaomu basically figured out his thinking.
The Android operating system is actually quite special. Although it is a free and open source operating system based on Linux and runs on the Linux kernel, it is not GNU/linux.1
On the contrary, in order to achieve commercial applications, Android has also removed the parts subject to the GNU GPL (General Purpose License).
The file system of the Android system is still Linux's ext4, but the partition where data is stored has different file systems. Generally, the /stroage/emulated (virtual SD card partition) on an Android phone has two file systems:
fuse and sdardfs.
The virtual SD card partition on Android phones is the storage space most frequently accessed by users, including apps.
As for why it is so troublesome, use an additional file system that only runs on the virtual SD card partition to access the actual ext4 file system. The purpose is simple:
Control the file access permissions of different apps.
The reason why Su Xiaomu wants to manipulate the file system is also very simple. If he wants to take up the banner of localization, he has to do it step by step. The file system happens to be an important core module, and the goal is of medium meaning.
Neither fuse nor sdardfs are made in China, let alone ext4 on Linux...
…………
…………
After leaving the laboratory, Su Xiaomu walked back to Huabanli. The female creditor Su Ho sent a message saying that she would go home to cook.
Su Xiaomu, who was eager to open her mouth for food, immediately responded.
He thought to himself, no wonder Su Ho didn't let him drive the car home in the morning. It turned out that he had been prepared for it.
The two happened to bump into each other in the elevator.
"Oh, who's little sister is so beautiful?" Su Xiaomu raised her eyebrows and stepped forward to tease her.
All he had to do was hook Su Ho's chin and say, "Girl, make me smile."
Su Ho was not annoyed at all. He was even looking forward to this step. He smiled slightly and said, "Doesn't it look better when you smile?"
Su Xiaomu nodded repeatedly.
"Yes Yes Yes."
"You damn ghost, how dare you say that you don't know how to flirt with girls!" Su Ho rolled his eyes, wanting to kill Su Xiaomu without telling the truth.
Su Xiaomu scratched his head and said, "Aren't you learning? Otherwise, I will always be criticized by you."
"Where did you learn it?" Su Ho's heart tightened.
Su Xiaomu cheered, "It's not just your words and deeds..."
1: gnu: A free operating system, which means that users are free to operate the software and can modify and share it.
Broken Bowl, highly recommended, please vote for recommendation.