2021年3月17日

PageCache和mmap

摘要: 文章是抄的,https://www.jianshu.com/p/7044e0b9ab7a?from=singlemessage pagecache linux对文件的读写必须先走pagecache,pagecache是内存中的一块区域,这样做的好处是,在写入的时候不直接写入硬盘,而是写入内存,可以加 阅读全文

posted @ 2021-03-17 16:15 MaXianZhe 阅读(2104) 评论(0) 推荐(0) 编辑

记录下在新公司跑一个应用的经历

摘要: 记录几个之前没见过的点 1 com.ymm.trade.TradeBootStrap 是pom文件中的parent里的类,本身不在工程里 2 注意 shorten command line 和后面的选项。百度下说是指定依赖的lib库从哪里获取,这么写读取运行jar包中的manifest.mf文件中的 阅读全文

posted @ 2021-03-17 09:15 MaXianZhe 阅读(58) 评论(0) 推荐(0) 编辑

Leet_Code_75_SortColor

摘要: public void sortColors(int[] nums) { int left = 0; int right = nums.length-1; for (int i=0;i<=right;i++) { if (nums[i] == 0) { swap(i,left,nums); left 阅读全文

posted @ 2021-03-17 07:55 MaXianZhe 阅读(32) 评论(0) 推荐(0) 编辑

Leet_Code_215_找第k大的数

摘要: public int findKthLargest(int[] nums, int k) { PriorityQueue<Integer> queue = new PriorityQueue<>(); for (int num : nums) { if (queue.size() < k) { qu 阅读全文

posted @ 2021-03-17 07:38 MaXianZhe 阅读(39) 评论(0) 推荐(0) 编辑

导航