0.1.36 • Published 10 months ago

@x-oasis/integer-buffer-set v0.1.36

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

@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.

0.1.36

10 months ago

0.1.35

1 year ago

0.1.30

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.33

2 years ago

0.1.34

2 years ago

0.1.15

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.20

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.26

2 years ago

0.1.16

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago