当前位置:网站首页>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 .


边栏推荐
- Fraud detection using CSP
- How to judge which star you look like?
- Computing network, AI first, shengteng AI helps operators' Digital Transformation -- work together to win-win Computing Era
- QT realizes calendar beautification
- July 8, 2022
- After upgrading v2.1.0, the synchronization failed
- Server performance monitoring
- Several application scenarios of NAT
- Gerrit statistics script
- What are the important trends revealed by the release of "operator data viability index"?
猜你喜欢

MySQL advanced (13) command line export import database

1260. Two dimensional grid migration: simple construction simulation problem

Remote sensing image classification tool and visualization application of WebGIS

Alibaba cloud released the white paper "upgrade - standardization of data warehouse upgrade delivery"

Consul cluster deployment

Apk packaging process

Detailed explanation of manually writing servlet in idea

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

Componentization and modularization

Nacos service discovery data model
随机推荐
The cloud ecology conference comes with the "peak"!
Beijing Zhun electric clock, Beidou clock server, GPS network time server, NTP satellite timing system
H5 common positioning function package
Today in history: the kotlin language was published for the first time; The father of the IMAP agreement was born; CT imaging achieves a new breakthrough
Anacona has too many environments?? How to view your current environment in jupyter
Thinkphp5.0.24 deserialization chain analysis
[leetcode] 3. Longest substring without repeated characters - go language problem solution
"No such plugin: cloudbees folder" solution appears when Jenkins selects the recommended plug-in for the first time
Simulate the implementation of strstr
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
POM reports an error
Standard transfer function
When sharing a folder, the 'attempt to share xxxxx
Peripherals: interrupt system of keys and CPU
Ogg data extraction delay is large
2022.7.20 linear table
Point to point copy and paste of web pages
After upgrading v2.1.0, the synchronization failed
QT realizes calendar beautification
6-11 vulnerability exploitation - use the built environment to send emails