Re: [pcre-dev] PCRE GPU offload

Kezdőlap
Üzenet törlése
Szerző: Roman Vasilyev
Dátum:  
Címzett: 'Zoltán Herczeg'
CC: pcre-dev
Tárgy: Re: [pcre-dev] PCRE GPU offload
"without uploading the whole input" means to find place where to stop?

If you can detect in pattern (E.g: /\p{Any}*/) that from this place till the end it will match whole string, you can stop uploading it into Buffer. Just return that from here you can copy whole data. In case if pattern expects some byte like /\w+ blah/ I think you don’t have choice to continue uploading data inthere.

> The other thing we need to worry about is the matching length. Let's say we start matching parallelly from the first 128 starting offsets, but the matching length is not
> known at compile time. It can be 100 bytes, 1000 bytes, anything. Are you able to do that without uploading the whole input, which is the worst case? E.g: /\p{Any}*/
> matches the whole input.