北京城市总体总体规划 下载

While reading EricGu’s post on Performance of Generics, I was struck by this sentence which expresses perfectly what I was trying to express to a group of programmers earlier today who were arguing about the :? operators in C# being “faster” than explicit if statements.  I called B.S. on the whole topic. Thanks Eric!

在阅读EricGu的有关泛型性能的文章时,这句话使我震惊,它完美地表达了我今天试图向一群争论:?的程序员表达的内容。 C#中的运算符比显式if语句“更快”。 我在整个主题上都打给BS。 谢谢埃里克!

Performance is rarely dominated by small decisions, such as whether you use an ArrayList or a List<int> to store your data. It's usually dominated by algorithmic concerns - how you process data, how much redundant processing you're doing, etc. My experience is that the ability to be able to address these concerns is fairly well correlated with the resiliency of your code to change, which usually comes down to how clean and understandable the code is. If you have clean code and good tests, it is probably feasible to refactor your code to improve performance once you find out where the performance issues are.

性能很少受小的决定所支配,例如使用ArrayList还是List <int>来存储数据。 它通常由算法方面的问题所主导-您如何处理数据,正在执行多少冗余处理等。我的经验是,能够解决这些问题的能力与代码更改的弹性相当相关,通常归结为代码的简洁性和可理解性。 如果您拥有干净的代码和良好的测试,一旦发现性能问题所在,就可以重构代码以提高性能。

Note that I'm not saying that you should put performance off until the end - that rarely works, as time at the end is fairly precious. I think you should focus on macro performance rather than micro performance. [EricGu]

请注意,我并不是说您应该将性能推迟到最后-这很少起作用,因为最后的时间非常宝贵。 我认为您应该关注宏观绩效,而不是微观绩效。 [ EricGu ]

翻译自: https://www.hanselman.com/blog/performance-in-general

北京城市总体总体规划 下载

北京城市总体总体规划 下载_总体表现相关推荐

  1. 一级建造师课件免费下载_注册建造师管理制度中的矛盾点总结!

    一级建造师课件免费下载_注册建造师管理制度中的矛盾点总结! 2007年,建设部颁布<注册建造师管理规定>要求建设工程项目的项目经理统一由注册建造师来担任.该规定明确了注册建造师可执业的工程 ...

  2. 期末作业代码网页设计代码——优分期大学生购物商城(7页) 大学生大学生购物商城作业模板下载 静态HTML购物商城网页制作下载_网页设计代码

    HTML5期末大作业:大学生购物商城网站设计--优分期大学生购物商城(7页) 大学生大学生购物商城作业模板下载 静态HTML购物商城网页制作下载_网页设计代码 常见网页设计作业题材有 个人. 美食. ...

  3. figma下载_在Figma上进行原型制作的各种触发选项

    figma下载 Prototypes are model versions of digital products. They're used to measure usability by test ...

  4. figma下载_在Figma中进行原型制作的技巧和窍门

    figma下载 自定义过渡和微交互 (Custom transitions and micro-interactions) Yep, I know that there are a lot of us ...

  5. 魔兽怀旧网站模块下载_一个人的网站重新设计和怀旧

    魔兽怀旧网站模块下载 Despite how I look, I'm the kind kind of person that loves to play old video games. (Full ...

  6. figma下载_通过构建7个通用UI动画来掌握Figma中的动画

    figma下载 Originally published on my personal blog. 最初发布在我的 个人博客上 . Most designers will spend many hou ...

  7. illustrator下载_平面设计:16个Illustrator快捷方式可加快工作流程

    illustrator下载 I know, I know - keyboard shortcuts sound so nerdy, and you're a graphic designer, not ...

  8. figma下载_素描vs Figma困境

    figma下载 I distinctly remember how much hatred I had in my heart when I lived through my first UI upd ...

  9. figma下载_何时在Figma中使用组或框架

    figma下载 Groups and Frames have very different uses in Figma, but it's difficult at first to tell why ...

  10. 腾讯视频网页下载_腾讯视频怎么下载视频

    本文给大家整理了腾讯视频网页下载_腾讯视频怎么下载视频方面的内容.腾讯视频独播剧质量还是可以的,比较给力的是腾讯视频大量买入了老剧的版权,不乏一些比较经典的港剧,还把这些老剧修复了.腾讯视频播放器是一 ...

最新文章

  1. Python自动化测试白羊座-week3切片+元组
  2. 测试php语句执行时间
  3. 《因果科学周刊》第1期:因果社区诚邀加入,打造因果推理共同范式
  4. 为什么我们不愿意读论文,原来都是作者害的
  5. 060_Unicode字符编码
  6. BZOJ4855 : [Jsoi2016]轻重路径
  7. 十进制小数转换为二进制
  8. c#语言float转换int,C#Float表达式:将结果float转换为int时的奇怪行为
  9. mysql 主主结构_高性能mysql主主架构
  10. Win 10 源码一览:0.5 T 代码、400 万文件、50 万文件夹
  11. 重磅福利!程序员面试——算法工程师面试大全第五部分
  12. VUE源码相关面试题汇总
  13. 权重较高的几个分类信息网站
  14. 《曾国藩的正面与侧面》,历史成功学新传与耕读理想
  15. 这一年炼就的底层内功修养
  16. PostgreSQL学习篇9.3 浮点数类型
  17. Struts2面试常见问题
  18. NodeMcu(ESP8266)控制SG90
  19. 不用库函数实现计算tan函数
  20. [转]第三届标致汽车设计国际邀请赛部分获奖作品展示

热门文章

  1. Python实训报告
  2. Unity Shader - Shader Compilation Target Levels 着色器编译目标级别
  3. 晶振与匹配电容的总结
  4. 胡小胖:微商创业必备的软件工具
  5. 全球与中国结肠水疗机市场深度研究分析报告
  6. 好看的(动态)Jay迷自制动态专辑卡片(正面和背面不同)和歌词页面
  7. android平板电脑手写笔应用,三星旗舰Android平板电脑将配备手写笔 小米5C使用自家松果处理器...
  8. 360校招笔试题(C++小明买菜)
  9. Unity接入心知天气,获取当前城市天气状况
  10. 【应用层】“世纪”大案之 我与网络地址的抗争