paint-brush
High Performance Text Parsing Using Finite State Machines (FSM)by@spidim
7,123 reads
7,123 reads

High Performance Text Parsing Using Finite State Machines (FSM)

by Spiros DimopoulosFebruary 13th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this article, I compare two parsing methods with a focus on their performance. The first method uses regular expressions for parsing and data extraction. The second method uses a Non-deterministic Finite Automata (NDFA) to parse text. The NDFA is a class of FSMs that can be used for any task that has distinct states of processing or operation. In practice, the algorithm has to follow every possible transition from a state to another and when a possible path fails it goes back and continues with another path.
featured image - High Performance Text Parsing Using Finite State Machines (FSM)
Spiros Dimopoulos HackerNoon profile picture
Spiros Dimopoulos

Spiros Dimopoulos

@spidim

L O A D I N G
. . . comments & more!

About Author

Spiros Dimopoulos HackerNoon profile picture
Spiros Dimopoulos@spidim

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite