v5.6.0
-
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
indexOfandlastIndexOfin packed hash
These optimizations result in up to 20% faster invocations of
parse(...)
and 40% faster invocations ofgetPublicSuffix(...)when using
tldts-experimental. This should also reduce memory pressure in cases where
specific methods are used (i.e.: all butparse(...)) since no intermediary
result object needs to be allocated. - re-use a unique result object for all methods but