Skip to content

能不能考虑缓存一下内建字体 #38

@John-Chan

Description

@John-Chan

做了一个简单的压测,普通字母png比中文png慢很多,数据如下:
https://github.com/power4j/java-perf/tree/master/easy-captcha

使用内建字体的时候,创建字体消耗了 30%的时间,是不是可以缓存一下,担心资源占用可以加个开关选项。
ec-1

使用中文验证码,没有创建字体就好多了。
ec-2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions