Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@x-oasis/integer-buffer-set

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@x-oasis/integer-buffer-set

IntegerBufferSet function

  • 0.1.30
  • npm
  • Socket score

Version published
Weekly downloads
86
decreased by-74.63%
Maintainers
3
Weekly downloads
 
Created
Source

@x-oasis/integer-buffer-set

Installation

$ npm i @x-oasis/integer-buffer-set

How to use

import IntegerBufferSet from '@x-oasis/integer-buffer-set'

How to run test

$ pnpm test

Usage

Philosophy

Basically, we only compare index value, such as

create a onTheFlyIndices as a slave buffer. theoretically, at most buffer size's new item could occupy a position.

IndexExtractor is the key point of design. if you do not delete/reorder an an array, indexExtractor is useless.

bad case

when getIndices..

positionToMetaIndices may used as a supplement. but when has multiple buffer. index refer to meta may changed to other buffer..

const data = [0, 1, 2, 3, 4, 5] only reuse m % 3 === 0, but when an item is deleted.. all these index after delete index value will be invalid, because m % 2 === 0 could not be reused.

FAQs

Package last updated on 07 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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