Re: [v8-users] Optimizaing v8 memory usage

2017-11-14 Thread Ben Noordhuis
On Wed, Nov 15, 2017 at 7:30 AM, wrote: > Hi, > I'm looking for ideas for optimizing multi thread - multi isolate platform. > Especially on memory footprint. > > Each thread runs an isolate and one context, and runs same function in the > script several times ( some time even

[v8-users] Optimizaing v8 memory usage

2017-11-14 Thread fkpkot
Hi, I'm looking for ideas for optimizing multi thread - multi isolate platform. Especially on memory footprint. Each thread runs an isolate and one context, and runs same function in the script several times ( some time even 100 times). We've made calls to GC, but I'm still looking for more

Re: [v8-users] code cacheing between isoalte

2017-11-14 Thread fkpkot
Thanks! it worked. although i did had issues with the api returning const but the ScriptCompiler::source api requiring non-const cache. On Monday, November 13, 2017 at 11:01:49 AM UTC+2, Ben Noordhuis wrote: > > On Mon, Nov 13, 2017 at 7:02 AM, wrote: > > hi, > > i have

Re: [v8-users] BSON to v8::Object performance issue

2017-11-14 Thread Jakob Kummerow
There are a bunch of optimizations going into object literal handling, so the two versions are not at all equivalent: the JS version is expected to be much faster. To make them more comparable, you could model the same control flow in JS, roughly: var input = { "_id": { "$oid":

[v8-users] BSON to v8::Object performance issue

2017-11-14 Thread Jean-Marc Le Roux
Hello, I'm trying to create NodeJS bindings for libbson. One of the things I need is to be able to transform a bson_t document into a v8::Object. Loading, iterating on bson_t documents and matching them with MongoDB-style queries it very fast: 50ms to load from my HDD, iterate and filter 26000

[v8-users] Re: [blink-dev] Re: Intent to ship: Unicode property escapes in regular expressions

2017-11-14 Thread 'Mathias Bynens' via v8-users
For future reference: this landed in V8 v6.4.276 and should thus be available in Chrome 64. On Thu, Nov 9, 2017 at 10:48 PM, Adam Klein wrote: > LGTM (for v8 signoff purposes). >