当前位置:网站首页>Is it necessary to increase the number of milliseconds and save several KB of memory in the program?
Is it necessary to increase the number of milliseconds and save several KB of memory in the program?
2022-07-25 02:19:00 【Embedded Linux,】
I remember a text when I was in primary school , It is said that there is a person who is very frugal , Not only does he save at home , If other people eat leftovers , He would pack it up, dry it and store it . Then there happened to be a year of famine , Everyone has no rice , He gave everyone the rice he had saved in those years .
I think saving depends on the situation , At that time, grain production was low , If you don't save , Then you may not have enough to eat .
But now it's different , Now? MCU You can add memory whenever you move , We just started using mobile phones , Memory 256M, Now the memory is directly 8G. The previous picture is 640*480, Now a picture is directly dozens M Size .
If you save code space by doing this , Not much use .

Add !
What I want to say is , The space occupied by the code is much less than that occupied by the actual storage , If it can be optimized, it must be good , I have also been in 52832 The project on is migrated to 51822 Experience of optimization , It also takes effort to save dozens of bytes , especially , Many people write the flag bit generally int flag, We used a bit To make a sign .
Because the running speed will directly affect the performance of the product , Therefore, the speed of operation will directly let users feel the quality of the product , like , If we open a video, we need to wait a few minutes , Then you may not have the desire to watch videos . If it takes several hours to turn on , You may also have no desire to use computers and mobile phones .
But there is a saying , Nowadays, Android phones are very slow to start , The reason why we can't feel this pain , It's because switching on and off mobile phones has become a very low-frequency thing .
But you said in 1 Hours of startup time / Reduce 1ms, There is no feeling from the user's feeling . But say , If you add 1ms, It's hard for users .


边栏推荐
- When executing SQL query statements in MySQL database, the underlying implementation principle (ultra detailed)
- Apk packaging process
- [leetcode] 3. Longest substring without repeated characters - go language problem solution
- It's still a synchronization problem
- Redis tutorial
- Upgrade the leapfrog products again, and the 2023 Geely Xingrui will be sold from 113700 yuan
- Computing network, AI first, shengteng AI helps operators' Digital Transformation -- work together to win-win Computing Era
- Can PostgreSQL CDC only connect to the main database? Connection from the library reports an error logical decoden
- How can arm access the Internet through a laptop?
- Solution to the occupation of project startup port
猜你喜欢

Chinese son-in-law OTA Ono became the first Asian president of the University of Michigan, with an annual salary of more than 6.5 million!

BMW I3 based on clar architecture is not a simple "oil to electricity" product

Hcip - BGP - border gateway protocol

ByteDance confirmation will be self-developed chip: for internal use only; Musk: I have uploaded my brain to the cloud; Go language product head leaves | geek headline

Use SAP ui5 application to consume create and delete operations of OData in business application studio
It's still a synchronization problem

Hbuilderx developed by uni app connects to night God simulator

Use Fiddler to capture apps

iptables :chains, target

"I gave up programming and wrote a 1.3 million word hard science fiction."
随机推荐
Antdb database products were selected into the global database industry map (2022) of the China Academy of communications and communications
Thinkphp5.0.24 deserialization chain analysis
VRRP virtual redundancy protocol configuration
"No such plugin: cloudbees folder" solution appears when Jenkins selects the recommended plug-in for the first time
Large number processing -- use case
Inventory of well-known source code mall systems at home and abroad
Babbitt | metauniverse daily must read: Dubai launched the national metauniverse strategy, which plans to increase the number of related companies of metauniverse by five times in the next five years
Nacos service discovery data model
DNA helped solve the outstanding case 30 years ago. The suspect strangled his girlfriend because he fell in love with his roommate. He was already the CEO of the technology company when he was arreste
Upgrade the leapfrog products again, and the 2023 Geely Xingrui will be sold from 113700 yuan
Android memory optimized disk cache
Standard transfer function
6-10 vulnerability exploitation SMTP experimental environment construction
Hcip - BGP - border gateway protocol
Web vulnerability
[linear DP] Digital triangle
How to judge which star you look like?
Detailed explanation of manually writing servlet in idea
After upgrading v2.1.0, the synchronization failed
Example demonstration of "uncover the secrets of asp.net core 6 framework" [02]: application development based on routing, MVC and grpc