# 复制文件小脚本 source_file = r'D:\py1912\demo\tanchishe.py' target_file = r'D:\py1912\demo\temp.py' # 分别打开文件对象 source = open(source_file,'rb') target = ope ...
分类:
其他好文 时间:
2020-02-06 23:27:00
阅读次数:
77
一、概念 VAO:Vertex Array Object VBO:Vertex Buffer Object EBO/IBO:Element Buffer Object,Index Buffer Object 二、解释为何如此编程 A vertex buffer object (VBO) is not ...
分类:
其他好文 时间:
2020-02-06 22:44:43
阅读次数:
77
Basic Command Buffer Operation 调用指定的api, 驱动将命令放入指定的buff当中。 在其他图形API(dx,or opengl) ,glsetlinewidth驱动会将其他所有的事情都做掉。 Command Buffer Pools 好处: 1、避免频繁分配和释放; ...
分类:
数据库 时间:
2020-02-06 12:39:56
阅读次数:
96
String在Java里面JDK1.8后它属于一个特殊的类,在创建一个String基本对象的时候,String会向“ 字符串常量池(String constant pool)” 进行检索是否有该数据(字符串)存在,如果存在则向该数据进行实例引用,返回到创建的String对象。所以当创建两个不同名字, ...
分类:
其他好文 时间:
2020-02-05 16:34:23
阅读次数:
87
字符串创建 1. String 应用变量名 = ‘字符串内容’’; 2. String 引用变量名 = new( ); 常用构造器 ||| | | | |String(byte[] bytes)|将字节数组bytes按照默认的编码方式构造一个字符串对象| |String(byte[] bytes,i ...
分类:
编程语言 时间:
2020-02-03 22:53:43
阅读次数:
145
本文描述处理Protocol Buffer常用到的一些设计模式。你也可以给 "Protocol Buffers discussion group" 发送设计或使用问题。 流式多条消息 如果你想将多个消息写入到单个文件或流中,你需要记录一条消息的结束及另一个的开始。Protocol Buffer wi ...
分类:
其他好文 时间:
2020-02-03 19:28:42
阅读次数:
71
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
分类:
其他好文 时间:
2020-02-03 09:33:29
阅读次数:
72
MySQL 会给每个线程分配一块内存用于排序,称为 sort_buffer。 select city,name,age from t where city='杭州' order by name limit 1000 ; 通常情况下,这个语句执行流程如下所示 : 初始化 sort_buffer,确定放 ...
分类:
其他好文 时间:
2020-02-02 16:00:42
阅读次数:
88
相关参数 read_buffer_size https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_read_buffer_size If you do many sequential scans, yo ...
分类:
数据库 时间:
2020-02-02 11:53:10
阅读次数:
85
区别:1. InnoDB支持事务,MyISAM不支持,对于InnoDB每一条SQL语言都默认封装成事务,自动提交,这样会影响速度,所以最好把多条SQL语言放在begin和commit之间,组成一个事务; 2. InnoDB支持外键,而MyISAM不支持。对一个包含外键的InnoDB表转为MYISAM ...
分类:
数据库 时间:
2020-02-02 11:45:50
阅读次数:
87