当前位置:网站首页>Performance optimization - rigorous mode
Performance optimization - rigorous mode
2022-07-02 22:51:00 【Why do you love learning so much】
StrictMode It's a development tool , It can detect what we might do unintentionally , And remind us of them , So that we can fix them .
StrictMode Most commonly used to capture unexpected disk or network access on the main thread of an application . Help us keep disk and network operations away from the main thread , Can make the application smoother 、 More responsive .

give an example : For example, the rigorous mode is turned on , Do it in the main thread IO Time consuming operation :
If you add penaltyLog Violation log printing , The error main thread will be IO Print out the operation .
If you add penaltyDeath Violation crash , Will print out the crash information .
This is used to remind developers , Code violations are unreasonable , Need to fix .
边栏推荐
- Market Research - current market situation and future development trend of intravenous injection (IV) bottles
- 悬镜安全在RSAC2022上斩获Global InfoSec Awards四项大奖
- Struct, bit segment, enumeration, union
- 原生js添加样式的方法
- 钟薛高回应产品1小时不化:含固体成分 融化不能变成水
- UE4 UI adaptive screen
- Commodity information management system (C language document version)
- [QT] Q multithreaded development - Analysis of multithreaded application examples (Mandelbrot)
- 杰理之样机在多次触摸后会触发关机【篇】
- U++ 原始内存 学习笔记
猜你喜欢

`${}`的用法

Jatpack------LiveData

开发者分享 | HLS, 巧用AXI_master总线接口指令的定制并提升数据带宽-面积换速度...

对象与对象变量

SimpleITK使用——4. 奇怪的问题

UE4 游戏架构 学习笔记

附加:【登录信息存储】与【登录状态校验】;(包括:总结了到目前为止,有关【登录信息存储】与【登录状态校验】的所有内容;)
![NC24325 [USACO 2012 Mar S]Flowerpot](/img/cf/86acbcb524b3af0999ce887c877781.png)
NC24325 [USACO 2012 Mar S]Flowerpot
![[chestnut sugar GIS] ArcMap - why should the tick of classic capture be removed when using custom capture?](/img/b5/e746dd115995e82c93f667c58a601c.png)
[chestnut sugar GIS] ArcMap - why should the tick of classic capture be removed when using custom capture?

牛客网:最大子矩阵
随机推荐
PHP微信抢红包的算法
数组进阶提高
Market Research - current market situation and future development trend of total nutrition products
钟薛高回应产品1小时不化:含固体成分 融化不能变成水
Jerry's modification does not require long press the boot function [chapter]
It's not easy to say I love you | use the minimum web API to upload files (swagger support) # yyds dry inventory #
送给即将工作的自己
数学建模——图与网络模型及方法(一)
Server response status code
[LeetCode] 数组中的第K个最大元素【215】
[QT] QT multithreading development - four methods to realize multithreading design
电商系统微服务架构
Utilisation de simpletk - 4. Question étrange
[LeetCode] 回文数【9】
Notes on key vocabulary in the English original of the biography of jobs (11) [chapter nine]
Film and television excerpts
杰理之内置短按再长按,不管长按多长时间都是短按【篇】
数据库系统概论第一章简答题-期末考得怎么样?
How can I use knockout's $parent/$root pseudovariables from inside a . computed() observable?
Perceptron model and Application