pil-utils icon indicating copy to clipboard operation
pil-utils copied to clipboard

A simple PIL wrapper and text-to-image tool

Results 1 pil-utils issues
Sort by recently updated
recently updated
newest added

https://github.com/lgc-NB2Dev/nonebot-plugin-multincm 我在使用这个点歌插件时发现在docker上绘制歌曲列表耗时10s,绘制歌词耗时至少30s,使用 `viztrace` 进行性能分析后发现最大的耗时在 `pil_utils` 在绘制文字函数内,具体的说是 `Text2Image.from_bbcode_text()` 函数里调用的 `get_proper_font()`,我认为可以创建一个 Dict, 缓存所有的 Font 对象,这样可能会多占用一些内存,但是不会出现频繁切换 Font 耗时巨大的问题了