-
Notifications
You must be signed in to change notification settings - Fork 65
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
[don't merge] Loading faces from memory: super slow? #81
Conversation
My results locally do not indicate a slowdown for overhaulfontnik.load 1186 ops/sec 10 10 overhaul-memoryfontnik.load 2825 ops/sec 10 10 |
bench2.js results: overhaulfontnik.load x 509 ops/sec ±1.62% (45 runs sampled) overhaul-memoryfontnik.load x 531 ops/sec ±1.46% (44 runs sampled) |
- avoid allocating std::string and instead keep alive the node.Buffer containing the in-memory font data and use a pointer to its memory - use RAII principles in baton structs for setting up and destroying persistent handles
@lbud - just pushed a few minor improvements to this branch. To recap: I'm not seeing any slowdowns, so I think this is ready to merge if you can confirm the same. Interested to hear if you can still replicate slowdowns. |
Aha, weird — ran both this morning and didn't see any slowdowns either once I reran |
Load faces from memory rather than disk
No description provided.