node-memcpy - Copies data between node Buffers and/or ArrayBuffers up to ~75 times faster than in pure JS

  •        160

Copies data between node Buffers and/or ArrayBuffers up to ~75 times faster than in pure JS. node.js utilizes a non-standard concept of I/O buffers and thus has both its Buffer as well as ArrayBuffer support. While Buffers are nice because they are a lot faster than V8's ArrayBuffers, transferring data between those two types can be ridiculously slow. This is where a node module like memcpy comes into play.

http://dcode.io
https://github.com/dcodeIO/node-memcpy

Dependencies:

bindings : ~1.1
nan : ~1.2.0
node-arraybuffer : ^1.0.11

Tags
Implementation
License
Platform

   




Related Projects

bytebuffer

  •    Javascript

A fast and complete ByteBuffer implementation using either ArrayBuffers in the browser or node Buffers under node.js, generated from a single source tree through MetaScript. The library is compatible with CommonJS and AMD loaders and is exposed globally as dcodeIO.ByteBuffer if neither is available.

BitsetWrapper - A bit array wrapper over Uint8Array, edits bits, but is stored as a byte array.

  •    Javascript

A bit array wrapper over Uint8Array, edits bits, but is stored as a byte array. The idea is that you use it as a bit array, you can also use it as a byte array of "any" type (until it reaaches max word size which for me is 53 bits) So yeah you could convert bytes back and forth bases, Also since it's based in Uint8Array, It's typed, therefore it won't change length as easily. You will have to concantenate it, it also has "useful" comments of why some thnigs exists, It's nice.

Buffer - Swift μ-framework for efficient array diffs, collection observation and cell configuration.

  •    Swift

Swift μ-framework for efficient array diffs, collection observation and data source implementation. Buffer is designed to be very granular and has APIs with very different degrees of abstraction.

qwest - Ajax library with XHR2, promises and request limit

  •    Javascript

Qwest is a simple ajax library based on promises and that supports XmlHttpRequest2 special data like ArrayBuffer, Blob and FormData. The method is either get, post, put or delete. The data parameter can be a multi-dimensional array or object, a string, an ArrayBuffer, a Blob, etc... If you don't want to pass any data but specify some options, set data to null.

sql.js - SQLite compiled to JavaScript through Emscripten

  •    Javascript

sql.js is a port of SQLite to JavaScript, by compiling the SQLite C code with Emscripten. It uses a virtual database file stored in memory, and thus doesn't persist the changes made to the database. However, it allows you to import any existing sqlite file, and to export the created database as a javascript typed array. There is no C bindings or node-gyp compilation here, sql.js is a simple javascript file, that can be used like any traditional javascript library. If you are building a native application in javascript (using Electron for instance), or are working in node.js, you will likely prefer to use a native binding of SQLite to javascript.


bytebuf - Example of how CL133375 can be utilized to mitigate Go escape analysis limitations.

  •    Go

Example of how CL133375 cmd/compile/internal/gc: handle array slice self-assign in esc.go can be utilized to mitigate Go escape analysis limitations. It shows how to fix problem described in cmd/compile, bytes: bootstrap array causes bytes.Buffer to always be heap-allocated using brand new escape analysis pattern.

gifencoder - Server side animated gif generation for node.js

  •    Javascript

NB: The chunks that get emitted by your read stream must either by a 1-dimensional bitmap of RGBA data (either an array or Buffer), or a canvas 2D context. Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.

buffer - The buffer module from node.js, for the browser.

  •    Javascript

With browserify, simply require('buffer') or use the Buffer global and you will get this module.The goal is to provide an API that is 100% identical to node's Buffer API. Read the official docs for the full list of properties, instance methods, and class methods that are supported.

Arrayzy - :package: The wrapper for all PHP built-in array functions and easy, object-oriented array manipulation library

  •    PHP

The wrapper for all PHP built-in array functions and easy, object-oriented array manipulation library. In short: Arrays on steroids. This is the main class of this library. Each method, which associated with the corresponding native PHP function, keep its behavior. In other words: methods could creates a new array (leaving the original array unchanged), operates on the same array (returns the array itself and DOES NOT create a new instance) or return some result.

array-explorer - ⚡️ A resource to help figure out what JavaScript array method would be best to use at any given time

  •    Javascript

When I was first learning array methods, I spent a lot of time digging through the docs to find the appropriate one, and I had to search one by one. I made this resource to help people find the correct array method a bit more naturally. You can narrow down what you want to do and explore until you find what's most useful to you. I realize that there are about a million ways that this resource can be set up, and some of the taxonomy is necessarily opionionated. I tried to focus on what I thought would have helped me learn the best, rather than industry standard delineations (mutator, accessor, iteration, for example). There are a lot of resources that already divide the methods this way, so if that style of learning suits you better, that's great! This resource is not set up that way. Please keep in mind that this is not meant to be as comprehensive or a replacement for full documentation, which is why the MDN docs are linked to in each method.

rex - Shellphish's automated exploitation engine, originally created for the Cyber Grand Challenge.

  •    Python

At the moment rex offers a couple of features, crash triaging, crash exploration, and exploitation for certain kinds of crashes. In the example below, we take a crashing input for legit_00003 discovered by AFL. The vulnerability is a simple buffer overflow on the stack, however, before the vulnerable function returns it calls memcpy with a destination parameter which was overwritten during the stack smash. While rex doesn't know how to exploit an arbitrary memcpy call (yet), it can be told to explore the crash until it finds an exploitation primitive which it knows how to exploit.

Judy - General purpose dynamic array

  •    C

Judy is a general purpose dynamic array implemented as a C callable library. Judy's speed and memory usage are typically better than other data storage models and improves with very large data sets. Judy's key benefits are scalability, high performance, and memory efficiency. A Judy array is extensible and can scale up to a very large number of elements, bounded only by machine memory. Since Judy is designed as an unbounded array, the size of a Judy array is not pre-allocated but grows and shrinks dynamically with the array population.

php-short-array-syntax-converter - Command-line script to convert PHP's array() syntax to PHP 5

  •    PHP

Command-line script to convert and revert PHP's array() syntax to PHP 5.4's short array syntax[] using PHP's built-in tokenizer. By relying on the PHP tokenizer, nothing but the array syntax itself will be altered. The script was successfully tested against code bases with more than 5.000 PHP files.

node-stack-trace - Get v8 stack traces as an array of CallSite objects.

  •    Javascript

Get v8 stack traces as an array of CallSite objects.Please note that parsing the Error#stack property is not perfect, only certain properties can be retrieved with it as noted in the API docs below.

negative-array - Negative array index support `array[-1]` using ES2015 Proxy

  •    Javascript

JavaScript doesn't natively support the use of a negative index to get items backwards from the end, but with ES2015 Proxy it's possible. Take a look at the source to see how simple it is to implement and read this short article about it.Proxies are objects for which the programmer has to define the semantics in JavaScript. The default object semantics are implemented in the JavaScript engine, often written in lower-level languages like C++. Proxies let the programmer define most of the behavior of an object in JavaScript. They are said to provide a meta-programming API.

SOCQ - Syntax for Objective-C Queries

  •    Objective-C

Returns an array with the specified number of elements from the beginning of the target array. Skips the indicated number of elements in the array and returns an array of the remaining elements.

array_column - Provides functionality for array_column() to projects using PHP earlier than version 5

  •    PHP

This simple library provides functionality for array_column() to versions of PHP earlier than 5.5. It mimics the functionality of the built-in function in every way. Given a multi-dimensional array of data, array_column() returns the values from a single column of the input array, identified by the $columnKey. Optionally, you may provide an $indexKey to index the values in the returned array by the values from the $indexKey column in the input array.

php-restclient - A generic REST API client for PHP

  •    PHP

headers - An associative array of HTTP headers and values to be included in every request. parameters - An associative array of URL or body parameters to be included in every request. curl_options - cURL options to apply to every request; anything defined here: https://secure.php.net/manual/en/function.curl-setopt.php. These will override any automatically generated values. build_indexed_queries (bool) - http_build_query automatically adds an array index to repeated parameters which is not desirable on most systems. Use this option to enable the default behavior. Defaults to FALSE. user_agent - User agent string to use in requests. base_url - URL to use for the base of each request. format - Format string is appended to resource on request (extension), and used to determine which decoder to use on response; a request URL like "api.twitter.com/1.1/statuses/user_timeline.json" would be expected to return well-formed JSON. format_regex - Pattern to extract format from response Content-Type header, used to determine which decoder to use on response. decoders - Associative array of format decoders. See "Direct Iteration and Response Decoding". username - Username to use for HTTP basic authentication. Requires password. password - Password to use for HTTP basic authentication. Requires username. url (string) - URL of the resource you are requesting. Will be prepended with the value of the base_url option, if it has been configured. Will be appended with the value of the format option, if it has been configured.

array-to-xml - A simple class to convert an array to xml

  •    PHP

This package provides a very simple class to convert an array to an xml string. You can install this package via composer.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.