摘要: 技术相关 博客SSS级 .NET ASP.NET MVC 数据库 设计模式 缓存 网络原理 Mybatis 依赖注入 nginx loading Paxos到zookeeper分布式一致性原理与实践 常见算法 loading... 常见数据结构loading... 并发 消息队列 loading h 阅读全文
posted @ 2018-12-11 10:07 vvf 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 并发访问下为了保证数据的一致性,采用严格的隔离标准访问数据,将并发访问串行化处理。但是这也导致吞吐量下降。 这时需要一定的一致性,设置不同的隔离级别,平衡一致性和处理效率。 C#事务:事务保存点 数据库事务和锁 隔离级别 阅读全文
posted @ 2020-05-16 17:50 vvf 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 不可变 1.IL代码优化字符串+操作 例1: 1)string s = "hello" + "world"; //IL代码会自动优化为一条指令 ldstr "helloworld" 加载到evaluation stack 2)string s1=“hello”; string s2="world"; 阅读全文
posted @ 2019-01-07 23:26 vvf 阅读(235) 评论(0) 推荐(0) 编辑
摘要: String 阅读全文
posted @ 2019-01-07 23:26 vvf 阅读(68) 评论(0) 推荐(0) 编辑
摘要: Evaluation Stack nop:如果修补操作码,则填充空间。尽管可能消耗处理周期,但未执行任何有意义的操作。 ldc.i4.0:将整数值 0 作为 int32 推送到计算堆栈上。ldc.i4.1:将整数值 1 作为 int32 推送到计算堆栈上。ldc.i4.2:将整数值 2 作为 int 阅读全文
posted @ 2019-01-07 21:53 vvf 阅读(246) 评论(0) 推荐(0) 编辑
摘要: Evaluation Stack The evaluation stack, which is mentioned often in the description of the Hello World application, is the pivotal structure of MSIL ap 阅读全文
posted @ 2019-01-07 21:50 vvf 阅读(535) 评论(0) 推荐(0) 编辑