Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
A resizable array using non-sequential block memory allocation. Growing or shrinking the array does not require reallocation of the entire array. Useful when you need to track a few trillion data points.
Note: For best results a 64-bit system and enough RAM to hold your data is recommended. If your data set grows slowly over time, paging to virtual memory may be acceptable.
npm install big-array
Usage: bigArray.Char(numberOfInitialElements, sizeOfElementBlocks)
var bigArray = require('big-array'),
ba, val;
// Numeric array types
ba = new bigArray.Char(10, 100);
ba = new bigArray.UnsignedChar();
ba = new bigArray.Int();
ba = new bigArray.UnsignedInt();
ba = new bigArray.ShortInt();
ba = new bigArray.ShortUnsignedInt();
ba = new bigArray.LongInt();
ba = new bigArray.LongUnsignedInt();
ba = new bigArray.Float();
ba = new bigArray.Double();
var bigArray = require('big-array'),
trillion = 1000 * 1000 * 1000 * 1000,
ba, i;
ba = bigArray.UnsignedChar();
// Unlike JavaScript, setting or getting a high index will result in
// the array allocating all elements before that index
ba.set(trillion, 5);
Tip: When testing on Linux, use "ulimit -v" to limit the maximum memory consumption.
# Limit memory usage to 10GB
ulimit -v 10485760
Common methods
set(index, value)
get(index)
// inc/dec by 1
inc(index)
dec(index)
push(value)
pop()
// modify push/pop index
setIndex(index)
getIndex()
// resize array to [size]
resize(size)
FAQs
When you need an array with a few trillion elements
The npm package big-array receives a total of 9 weekly downloads. As such, big-array popularity was classified as not popular.
We found that big-array demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.