mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
comments on performance
This commit is contained in:
parent
59dc1f8599
commit
bb3c0f7370
10
README.md
10
README.md
|
@ -52,8 +52,14 @@ All features of upskirt are supported, including:
|
||||||
errors that were present in the C code).
|
errors that were present in the C code).
|
||||||
|
|
||||||
* Good performance. I have not done rigorous benchmarking, but
|
* Good performance. I have not done rigorous benchmarking, but
|
||||||
informal testing suggests it is pretty fast. Probably not as
|
informal testing suggests it is around 8x slower than upskirt.
|
||||||
fast as upskirt, but probably faster than most others.
|
This is still an ugly, direct translation from the C code, so
|
||||||
|
the difference is unlikely to be related to differences in
|
||||||
|
coding style. There is a lot of bounds checking that is
|
||||||
|
duplicated (by user code for the application and again by code
|
||||||
|
the compiler generates) and there is some additional memory
|
||||||
|
management overhead, since I allocate and garbage collect
|
||||||
|
buffers instead of explicitly managing them as upskirt does.
|
||||||
|
|
||||||
* Minimal dependencies. blackfriday only depends on standard
|
* Minimal dependencies. blackfriday only depends on standard
|
||||||
library packages in Go. The source code is pretty
|
library packages in Go. The source code is pretty
|
||||||
|
|
Loading…
Reference in New Issue
Block a user