> No, you can only access an Isolate (including Contexts in that Isolate) 
from a single thread. 

Ok, thanks!

> Some reason you can't just use the standard C++ library regex functions 
and save significant CPU/memory/maintenance/time? 

I am currently using std::regex, but I have two issues with it:
1. The RegExp I need to evaluate come from a JS context, and there are 
differences in evaluation between JS and the C++ std lib (not a show 
stopper, but if I can get the same behavior I'll take it).
2. std::regex appears to be rather slow... I am trying to allow the JS side 
to filter some things out happening on the C++ side, but with patterns such 
as ".*/\\.cache" I get worse performance than when not filtering anything 
(setup time is x4 times slower in some cases, from 2s to 8s...)

Regarding (2) despite increasing the setup time of my addon, the filtering 
still allows me to save on fd handles. But if v8's RegExp runs fast enough 
and allows me to get better perfs I'd be happy.

Le mardi 4 août 2020 à 12:41:11 UTC-4, [email protected] a écrit :

> > I need to run a regex match in said thread 
>
> Some reason you can't just use the standard C++ library regex functions 
> and save significant CPU/memory/maintenance/time?
>

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/7db0feb2-244e-4640-ba85-3890c4087e03n%40googlegroups.com.

Reply via email to