A CommonMark-compliant markdown renderer written in Swift.
- It is a port of stmd.js with a slow move towards Swiftisms. (Pattern matching!)
- I've only tested in in Xcode6.1β.
Literally 65 times slower. This thing spends more 25% of its time in
_swift_retain_, and rediculous amounds of time in
OSAtomicCompareAndSwapPtrBarrier$VARIANT$mp, and some others. There are 11 low level functions that flat out take longer than stmd.js. Diving deeper, I spend more time releasing references to
Swift.Characterthan stmd.js spends parsing a document.
There are probably areas where I can do better, the regex engine can do better, the compiler can do better, etc. Right now though, man it's slow.