Skip to content

0.1.2

Compare
Choose a tag to compare
@stephencelis stephencelis released this 29 Dec 03:31
· 196 commits to main since this release
  • Changed: Double.parser() has been rewritten to pass a parsed substring directly to Double.init rather than strtod_l (which Double.init uses under the hood). This avoids a crash in which an attempt to take the contiguous bytes of an unsafe buffer pointer on contiguous storage can fail. There is a slight performance cost (as seen in the benchmarks). We can probably recover this performance with a custom parser that does not simply wrap Double.init.
  • Bug fixed: all Prefix parser initializers correctly pass through their predicate parameters.
  • Simplified parse helper on strings to contiguous storage (thanks @kaandedeoglu).
  • Improved documentation.
  • Improved JSON example: it is not to-spec with properly escaped strings. Naive implementation still performs only about 2x slower than JSONSerialization.