Socket
Socket
Sign inDemoInstall

fast-unique-numbers

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-unique-numbers - npm Package Compare versions

Comparing version 6.0.20 to 6.0.21

8

package.json

@@ -32,3 +32,3 @@ {

"eslint": "^8.23.0",
"eslint-config-holy-grail": "^52.0.31",
"eslint-config-holy-grail": "^52.0.32",
"grunt": "^1.5.3",

@@ -56,5 +56,5 @@ "grunt-cli": "^1.4.3",

"ts-loader": "^9.3.1",
"tsconfig-holy-grail": "^11.1.35",
"tsconfig-holy-grail": "^11.1.36",
"tslint": "^6.1.3",
"tslint-config-holy-grail": "^53.2.32",
"tslint-config-holy-grail": "^53.2.33",
"typescript": "^4.8.2",

@@ -91,3 +91,3 @@ "webpack": "^5.74.0"

"types": "build/es2019/module.d.ts",
"version": "6.0.20"
"version": "6.0.21"
}

@@ -7,5 +7,5 @@ # fast-unique-numbers

This module is meant to create unique numbers within a given [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) or [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set). To achieve that as fast as possible the resulting set of numbers will only contain integers. For as long as possible only small integers will be used. This is a special integer representation that [V8](https://v8.dev) uses to store integers more efficiently.
This module is meant to create unique numbers within a given [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) or [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set). To achieve that as fast as possible the resulting set of numbers will only contain integers. Additionally only small integers will be used for as long as possible. Small integers can be stored more efficiently by JavaScript engines like [SpiderMonkey](https://spidermonkey.dev/) or [V8](https://v8.dev).
To verify the expected perfomance benefit an expectation test is used to make sure small integers do actually perform better. A complementary test is used to make sure the perfomance gain achieved in Chromium based browsers and Node.js is not negated by causing unexpected behavior when running in Firefox.
To verify the expected perfomance benefit an expectation test is used to make sure small integers do actually perform better in Chromium based browsers, Firefox and when using Node.js.

@@ -12,0 +12,0 @@ ## Usage

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc