git ssb

0+

wanderer🌟 / js-dfinity-radix-tree



Commit e27db1ccc7aad65596f14513efb0e9de9ad37b34

use subarray instead of slice

Signed-off-by: wanderer <mjbecze@gmail.com>
wanderer committed on 9/27/2017, 10:59:28 PM
Parent: e2492b833ea56ac03262f19efeb131600d8d872d

Files changed

index.jschanged
index.jsView
@@ -53,9 +53,9 @@
5353 let extensionIndex = 0
5454 const extension = getExtension(root)
5555 const extensionLen = extension.length
5656 let subKey
57- subKey = key.slice(index, index + extensionLen)
57 + subKey = key.subarray(index, index + extensionLen)
5858
5959 // checks the extension against the key
6060 while (extensionIndex < extensionLen && extension[extensionIndex] === subKey[extensionIndex]) {
6161 extensionIndex++

Built with git-ssb-web