Skip to content

v5.6.0

Choose a tag to compare

@remusao remusao released this 12 Oct 22:02
· 2379 commits to master since this release
0a243e0
  • New optimizations #255

    • re-use a unique result object for all methods but parse(...)
    • remove memory allocation + callback in packed hash
    • remove unnecessary calls to indexOf and lastIndexOf in packed hash

    These optimizations result in up to 20% faster invocations of parse(...)
    and 40% faster invocations of getPublicSuffix(...)when using
    tldts-experimental. This should also reduce memory pressure in cases where
    specific methods are used (i.e.: all but parse(...)) since no intermediary
    result object needs to be allocated.