+The following table provides median times it takes to decode a string to a tree for html parsers that can be used from Elixir. Benchmarks were conducted on a machine with `Intel Core i7-3520M @ 2.90GHz` CPU and 16GB of RAM. The `mix fast_html.bench` task can be used for running the benchmark by yourself.
- Benchmark results (removed Nif calling mode) on various file sizes on a 2,5Ghz Core i7:
+The slowdown on `fragment-small.html` is due to C-Node overhead. Unlike html5ever and Myhtmlex in NIF mode, `fast_html` has the parser process isolated and communicates with it over the network, so even if a fatal crash in the parser happens, it won't bring down the entire VM.
## Contribution / Bug Reports
* Please make sure you do `git submodule update` after a checkout/pull
* The project aims to be fully tested
diff --git a/lib/fast_html.ex b/lib/fast_html.ex
index 387278c..7ed80c9 100644
--- a/lib/fast_html.ex
+++ b/lib/fast_html.ex
@@ -1,77 +1,74 @@
defmodule :fast_html do
@moduledoc """
A module to decode html into a tree structure.
-
- Based on [Alexander Borisov's myhtml](https://github.com/lexborisov/myhtml),
- this binding gains the properties of being html-spec compliant and very fast.