forked from OpenUserJS/OpenUserJS.org
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore the "chunked" methodology in
getMeta
* Rename `aChunks` to `aBufs` to match *node* docs and indicate that is what we are expecting * `.concat` is vague on `totalLength` parameter but in tests with *node* it is `String` length e.g. `1` returns one character currently ... added Watchpoint here * Remove the debug messages for now * Tested on ~112.9KiB User Script... took ~10ms-11ms versus 7ms in debug mode on full Buffers conversion... slower **however** less memory intensive in some use cases especially with larger scripts Applies to OpenUserJS#678 Refs: * https://nodejs.org/api/buffer.html#buffer_class_method_buffer_concat_list_totallength
- Loading branch information
Martii
committed
Oct 6, 2015
1 parent
5d0788e
commit 9a09467
Showing
1 changed file
with
26 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters