• 2024-07-04Collectors中的groupingBy和reducing 细节问题
    stream流中对数据进行先分组在聚合,一般会想到使用groupingBy和reducing,但是reducing中的identity是只会初始化一次的,所以我们传参的时候传的是Object,不是XXX::new,在reducing的合并函数中我们不能返回vo1或者vo2,只能new一个对象正确使用Map<String,StatisticsVo>collect=s
  • 2024-03-02管道组成件中英对照
    管道组成件中英对照管道组成件Pipingcomponent1.1管子Pipe管子(按照配管标准规格制造的)pipe管子(不按配管标准规格制造的其他用管)tube钢管steelpipe铸铁管castironpipe衬里管linedpipe复合管cladpipe碳钢管carbonsteelpipe合金钢管alloysteelpip
  • 2023-07-09【论文解析】EJOR 2011 A clustering procedure for reducing the number of representative solutions in the Pa
    论文名称:AclusteringprocedureforreducingthenumberofrepresentativesolutionsintheParetoFrontofmultiobjectiveoptimizationproblems动机假设一个三目标优化问题\[\begin{aligned}&\text{Availability:}\max_\thetaJ_1(\theta)=\max_{\theta_p,
  • 2023-05-16An Attempt at Reducing Costs of Disk I/O in Go
    为了实现磁盘上的IO,go语言使用一组IO线程池用来提高CPU的使用率本文是在go语言上尝试了接入了linuxlibaio,并没有发现性能的提升。使用O_DIRECT意味着数据直接到达磁盘上,这将不能有效的利用pagecache用来加速,合并读写请求;O_DIRECT的方式对读写的大小有限制,必须是blocksize大小
  • 2022-12-02python PIL resize
    https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.resizeImage.resize(size,resample=None,box=None,reducing_gap=None)[source]Re
  • 2022-08-14ABC 264 C - Matrix Reducing(思维)
    https://atcoder.jp/contests/abc264/tasks/abc264_c题目大意:给定n*m的a矩阵,x*y的b矩阵问能不能删除若干行和列使a变成b?SampleInput14512345678910