We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for (var i = 0; i < 8000; i++) { if (...) { glyph.path.commands.forEach(); } }
for (var i = 0; i < 8000; i++) { var commands = glyph.path.commands; if (...) { commands.forEach(); } }
这两段代码性能差了50倍。。
The text was updated successfully, but these errors were encountered:
看到源码里的这一句应该就明白了
Object.defineProperty(this, 'path', getPathDefinition(this, options.path));
关键是这种问题真的很难发现,这次发现是因为3D字的demo速度很快,但是同事放到项目中却很卡,经过仔细排查才发现问题。
Sorry, something went wrong.
No branches or pull requests
这两段代码性能差了50倍。。
The text was updated successfully, but these errors were encountered: