当前位置:网站首页>ILRunitme foreach 存在GC
ILRunitme foreach 存在GC
2022-07-20 04:06:00 【枫十七】
Dictionary :
List:
测试代码如下:
dics.Add("123", "opdfasp");
dics.Add("1234", "opdfasp");
dics.Add("125", "opdfasp");
dics.Add("126", "opdfasp");
dics.Add("127", "opdfasp");
dics.Add("128", "opdfasp");
dics.Add("129", "opdfasp");
dics.Add("121", "opdfasp");
dics.Add("12231", "opdfasp");
dics.Add("12332465", "opdfasp");
lists.Add("123");
lists.Add("1234");
lists.Add("125");
lists.Add("126");
lists.Add("127");
lists.Add("128");
lists.Add("129");
lists.Add("121");
lists.Add("12231");
lists.Add("12332465");
if (UnityEngine.Input.GetKeyDown(UnityEngine.KeyCode.D))
{
Dic = true;
}
if (UnityEngine.Input.GetKeyDown(UnityEngine.KeyCode.R))
{
Dic = false;
}
if (Dic)
{
foreach (var item in dics)
{
if (item.Key == "")
{
}
}
}
else
{
for (int i = 0; i < lists.Count; i++)
{
if (lists[i] == "")
{
}
}
}
边栏推荐
- 2022-07-18 至 2022-07-25 记录
- 一文速学-PySpark数据分析基础:PySpark基础功能及基础语法详解
- Infinite connection · infinite collaboration | the first global enterprise communication cloud conference WECC is coming
- 06.02 binary tree traversal
- 分享一个好玩的JS小游戏
- BOM browser object model (Part 1) - overview, common events of window object, JS execution mechanism (close advertisement after 5 seconds, countdown case, send SMS countdown case)
- 特殊类的设计(单例模式)
- Method of creating thread
- Reasons why loss does not decrease
- DP knapsack problem
猜你喜欢
随机推荐
【Pytorch】Tensorboard用法:标量曲线图、直方图、模型结构图
Thread pool code and testing
BOM浏览器对象模型(下篇)—— offset、client、scroll三大家族、插件及本地存储特性(案例:仿京东放大镜、模态框拖拽)
网络中的参数量(param)和浮点计算量(FLOPs)的计算
首选线程池,而不是多线程
Wave field joint reserve issued an open letter, emphasizing that usdd is not subject to any centralized institutions
1*1卷积核的作用
kettle
使用ECS和OSS搭建个人网盘
Differences between href and SRC, div and span
分享一个好玩的JS小游戏
kvm虚拟化
When does the index expire
ResNet知识点补充
计算从今天开始的几天前的日期
Excel管理Simulink SWC中的标定量与观测量之标定量
From function to test open, Alibaba software testing experience, look at the technology stack of big manufacturers
redis回顾
Caffeine cache add change check expired
Leetcode sword finger offer 32 - I. print binary tree from top to bottom