[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.