meetwq / meme-generator-contrib Goto Github PK
View Code? Open in Web Editor NEWRepository for meme-generator's extra memes
License: MIT License
Repository for meme-generator's extra memes
License: MIT License
表情 禁止 当制作gif时会有1帧的黑色,导致图片闪烁,可以优化一下。
萌新想问一下,改写配置文件后需要重启docker容器吗?
我重启之后发现配置文件被重置了,
不重启发请求提示not found
在使用 nonebot-plugin-memes 的时候发现内存膨胀比较快,经排查发现是表情“飞机杯”导致的,调用一次将增加32MB的内存占用。
用 memray attach 发现是在生成飞机杯表情时有个 numpy 乘法留下了 32MB 内存没释放。
因为我白天只能用手机 termux 看看服务器上的日志,没办法详细分析。晚上有空再研究一下这个问题。如果作者你有时间的话可以帮我解决一下吗(笑
下面这个是 memray 在调用两次飞机杯表情包时抓取到的记录,但是因为服务器上是以 attach 模式抓取的,没有更详细的调用栈。
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┓
┃ Location ┃ Total Memory ┃ Total Memory % ┃ <Own Memory> ┃ Own Memory % ┃ Allocation Count ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━┩
│ __mul__ at /root/qqbot/heimiao/__pypackages__/3.10/lib/numpy/matrixlib/defmatrix.py │ 32.000MB │ 49.38% │ 32.000MB │ 49.38% │ 2 │
│ convert at /root/qqbot/heimiao/__pypackages__/3.10/lib/PIL/Image.py │ 3.371KB │ 0.01% │ 3.371KB │ 0.01% │ 2 │
└─────────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────┘
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.