npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nv-bit-1-on-32

v1.0.1

Published

nv-bit-1-on-32 ======================= - a simple bit-array FOR big-size (> 256M) - pure js - IF size <=512M USE using\_smia.creat FOR speed - IF size >=512M AND <= 3G~4G

Downloads

12

Readme

nv-bit-1-on-32

  • a simple bit-array FOR big-size (> 256M)

  • pure js

  • IF size <=512M USE using_smia.creat FOR speed

  • IF size >=512M AND <= 3G~4G USE using_i32a.creat

  • IF size >=4G , it CANT work, it maybe crash (based on your v8 AND runtime start-up config)

  • its used for test pure-js bloom-filter , normally USELESS

  • its faster than nv-bit-1(which is generated by script). this is wrote by human.

install

  • npm install nv-bit-1-on-32

splitted

usage

  const { using_smia,using_i32a}   = require("nv-bit-1-on-32");

example

small

      // <=512M

            const {sync} = require("nv-facutil-simple-test")

            var creat = using_smia.creat;

            var sz =    2**29;             
            var b1 = creat(sz);

	//%DebugPrint(b1)  packed_smi

	var f =(cnt) => {
	   for(let i=0;i<cnt;++i)    {b1.set(i,i%2)}
	   for(let i=0;i<cnt;++i)    {if(b1.get(i) !== (i%2)) {throw(i)}}
	}

	var res = sync(1,f,2**29)
	console.log(res)
	/*
	{ rounds: 1, f: [Function: f], costed: 2734.416069984436 }
	*/
	//%DebugPrint(b1)  packed_smi

big

      > 512M

            var creat = using_i32a.creat;

            var ab = new ArrayBuffer(2**31)

            var si =    0;
            var sz =    2**31;             
            
            var b1 = creat(ab,si,sz);

	var f =(cnt) => {
	   for(let i=0;i<cnt;++i)    {b1.set(i,i%2)}
	   for(let i=0;i<cnt;++i)    {if(b1.get(i) !== (i%2)) {throw(i)}}
	}

	console.log(sync(1,f,2**31))

            /*
                 { rounds: 1, f: [Function: f], costed: 47496.44641697407 }
            */
            

METHODS

APIS

  •         using\_smia.creat(size): Array
  •         using\_i32a.creat(ab:ArrayBuffer, si=0, size): Int32Array

LICENSE

  • ISC