Skip to content
New issue

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

Performance issue #25

Open
raphaklaus opened this issue Apr 23, 2016 · 3 comments
Open

Performance issue #25

raphaklaus opened this issue Apr 23, 2016 · 3 comments

Comments

@raphaklaus
Copy link

Converting ttf to woff2 takes 30~45 seconds. Is there something planned to avoid this performance issue?

@nfroidure
Copy link
Owner

You are probably using the JS fallback. Setting up your env to run the native add-on will certainly speed up the build.

Feel free to suggest Emscripten configuration improvement if you think the JS fallback may be built better.

@GeorgiyZhuravlev
Copy link

Hello, guys. We are using ttf to woff2 inside Electron application (mac os platform) and also having the performance issues. You've mentioned that JS fallback can be the reason. If so, can you give us advice, what can be done to avoid getting to this fallback. Some library or Electron environment settings maybe? Any thoughts or suggestions? Because being run as CLI tool ttf2woff2 gives us outstanding conversion speed, which we are missing inside Electron app.

@nfroidure
Copy link
Owner

I don't have any experience in Electron apps building atm but you may looks at this module setup. See https://github.com/nfroidure/ttf2woff2/blob/master/binding.gyp for example and adapt it to your own build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants