如果测试项目用的maven依赖,先把maven坐标准备好 <!-- https://mvnrepository.com/artifact/redis.clients/jedis --><dependency> <groupId>redis.clients</groupId> <artifactId> ...
分类:
数据库 时间:
2020-02-22 00:40:39
阅读次数:
79
资源限制pod和container的资源请求和限制#cpu上限spec.containers[].resources.limits.cpu#内存上限spec.containers[].resources.limits.memory#创建时分配的基本cpu资源spec.containers[].resources.requests.cpu#创建时分配的基本内存资源spec.containers[].
分类:
Web程序 时间:
2020-02-21 23:55:55
阅读次数:
131
rt越多,更多的tile需要更多的gmem操作,影响性能。同样,越大的surface表示更多的tile、更多的gmem操作。 如果不得不用rt,那么,要做性能和画质之间权衡。 Snapdragon里,trace里,点击surface能看到大小和color、depth、stencil的精度,查找哪些可 ...
分类:
其他好文 时间:
2020-02-21 19:48:09
阅读次数:
77
修改请求的Body: //这里ReadToEnd执行完毕后requestBodyStream流的位置会从0到最后位置(即request.ContentLength) var RequestBody = new StreamReader(HttpContext.Request.BodyReader.A ...
分类:
Web程序 时间:
2020-02-21 16:21:09
阅读次数:
195
.新建配置类SecurityConfig //AOP实现,不更改其他代码,安全框架代替拦截器//Enable注解表示开启功能@EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter{ //授 ...
分类:
编程语言 时间:
2020-02-21 14:12:51
阅读次数:
59
代码介绍: 文件数据格式:点的数量,边的数量,源点序号,汇点序号 每条边:起点,终点,容量 从文件中读取数据,构建网络流图,使用dinic算法求解最大流,采用数组邻接表存储数据。 求最大流过程:不断找一条源点到汇点的路径,若有,找出增广路径上每一段权值的最小值,然后构建残余网络。再在残余网络上寻找新 ...
分类:
其他好文 时间:
2020-02-21 12:58:05
阅读次数:
82
m 类的成员变量(member) sm 类的静态成员变量(static member) s 静态变量(static) g 外部全局变量(global) sg 静态全局变量(static global) n 整型和位域变量(number) e 枚举型变量(enumeration) c 字符型变量(ch ...
分类:
编程语言 时间:
2020-02-21 11:23:21
阅读次数:
116
题目链接:https://atcoder.jp/contests/abc155/tasks/abc155_d 题目大意 给定$N$个整数$A_1, A_2, \dots, A_N$, 求集合$S = \{A_i * A_j | 1 \leq i, j \leq N 且 i \neq j\}$的第$K ...
分类:
其他好文 时间:
2020-02-21 09:15:47
阅读次数:
75
作者: 捡?螺的?男孩 常? OOM 异常分析 堆溢出 栈溢出 方法区溢出 本机直接内存溢出 GC overhead limit exceeded 一、堆溢出 Java 堆?于存储对象实例,只要不断地创建对象,并且保证 GC Roots 到对象之间有可达路径来避免垃圾回收机制清除这些对象,那么 在对 ...
分类:
其他好文 时间:
2020-02-21 00:10:59
阅读次数:
75
```cpp #include #include #include #include using namespace std; typedef long long LL; const int N = 1e5; int n , lim , x[N + 5] , y[N + 5] , z[N + 5] ... ...
分类:
其他好文 时间:
2020-02-20 20:30:50
阅读次数:
80