上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 124 下一页
摘要: 老生代内存是用于保存生命周期较长或常驻内存的对象,占用的内存较多。Chrome V8和Node.js的老生代内存空间都很大,因此它们的垃圾回收机制采用了Mark-Sweep和Mark-Compact的结合体,主要采用Mark-Sweep。当老生代空间不足以分配从新生代晋升过来的对象时,才使用Mark 阅读全文
posted @ 2023-10-18 13:08 AngDH 阅读(40) 评论(0) 推荐(0)
摘要: 新生代内存是JavaScript中用于存储对象的内存区域。它具有以下特点:- 内存区域较小- 垃圾回收频繁 在新生代中,分配内存非常简单。只需保存一个指向内存区的指针,并根据新对象的大小进行递增即可。当指针到达新生代内存区的末尾时,就会触发一次清理操作。 新生代内存使用Scavenge算法进行垃圾回 阅读全文
posted @ 2023-10-18 10:09 AngDH 阅读(46) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-17 13:43 AngDH 阅读(25) 评论(0) 推荐(0)
摘要: import asyncio async def main(): loop = asyncio.get_running_loop() future = loop.create_future() print("Future created:", future) await asyncio.sleep( 阅读全文
posted @ 2023-10-16 15:35 AngDH 阅读(39) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-02 17:02 AngDH 阅读(20) 评论(0) 推荐(0)
摘要: 引用最大的价值是避免复制 #include <iostream> using namespace std; void method2(int& param) { param = param + 1; cout << "method2 inner:" << param << endl; //metho 阅读全文
posted @ 2023-09-21 13:02 AngDH 阅读(37) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int a{ 1 }; int main() { int a{ 123 }; cout << "外部的a:" << a << endl; //外部的a:123 { cout << "外部的a:" << a << end 阅读全文
posted @ 2023-09-20 18:33 AngDH 阅读(85) 评论(0) 推荐(0)
摘要: # -*- coding:utf-8 -*- import random from scrapy.core.downloader.contextfactory import ScrapyClientContextFactory from scrapy.core.downloader.handlers 阅读全文
posted @ 2023-09-14 10:34 AngDH 阅读(93) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/qq_42988351/article/details/108797567 需要源码加v 2224995118 阅读全文
posted @ 2023-09-13 08:44 AngDH 阅读(21) 评论(0) 推荐(0)
摘要: std::vector<std::string> split(const std::string& s, char delim) { std::vector<std::string> elems; std::istringstream iss(s); std::string item; while 阅读全文
posted @ 2023-09-08 19:13 AngDH 阅读(72) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 124 下一页