#1 2025-05-21 14:22:54

tfopc
Member
Registered: 2024-01-08
Posts: 27

Fast search for string in text-file via mormot

Hi all,

i am a litle bit lost in the big framework.

There is certainly also a possibility in the mormot framework for a fast greap-search for a string in a text-file via mormot.

I would like to check whether a text is contained in a text file. Currently I would only have to check line by line. Of course I can do this without mormot, but there is certainly an optimized option in mormot. Can someone point me in the right direction with a few lines of code.

I would also be grateful for a hint on how to optimize a general grep search.

Thank you.
Tobias

Offline

#2 2025-05-21 15:38:47

tbo
Member
Registered: 2015-04-20
Posts: 362

Re: Fast search for string in text-file via mormot

Search the mORMot source code for TMemoryMapText, TMatch and IsMatch. Perhaps this post will also give you some inspiration.

With best regards
Thomas

Offline

Board footer

Powered by FluxBB