Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring fast sync path back home #41

Open
wants to merge 101 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
54bc1ea
round 1 improve perf of encoder roughly 10x
dignifiedquire Nov 12, 2016
f268a3d
less buffer allocations
dignifiedquire Nov 12, 2016
943778a
faster type detection
dignifiedquire Nov 13, 2016
8875e71
fix bottlenecks in node
dignifiedquire Nov 13, 2016
70af842
better state tracking
dignifiedquire Nov 13, 2016
728f1d1
start implementing the fast decoder
dignifiedquire Nov 14, 2016
6800576
simle int parsing in asm
dignifiedquire Nov 14, 2016
eac4095
uints passing
dignifiedquire Nov 15, 2016
6fe7b39
better tests and more passing
dignifiedquire Nov 15, 2016
c5e5691
more tests and asm compliation back
dignifiedquire Nov 15, 2016
13bfa7d
basic parent handling and arrays
dignifiedquire Nov 15, 2016
f776ec3
start support for byte strings
dignifiedquire Nov 15, 2016
94c10a7
start reorganizing the repo
dignifiedquire Nov 16, 2016
e1c4333
setup aegir
dignifiedquire Nov 16, 2016
ea26ebd
finish reorganization and runnable tests and benchmarks
dignifiedquire Nov 17, 2016
eb59f40
improve benchmarks
dignifiedquire Nov 17, 2016
f0fefaf
cleanup and setup decoder
dignifiedquire Nov 17, 2016
71e3673
most decoding passing
dignifiedquire Nov 18, 2016
ce0c9d1
drop cbor.js from benchmarks
dignifiedquire Nov 18, 2016
2df92af
streaming decoder
dignifiedquire Nov 19, 2016
42998d7
test: port garbage tests
dignifiedquire Nov 20, 2016
5e5c872
more decoder test passing
dignifiedquire Nov 20, 2016
66a8a84
test: add canonical tests
dignifiedquire Nov 21, 2016
4d015a3
first pass at fixing canoncial
dignifiedquire Nov 21, 2016
6e8040a
test(encoder): more passing
dignifiedquire Nov 22, 2016
e827364
canonical maps
dignifiedquire Nov 22, 2016
335027b
encoder: tweaks and improvements
dignifiedquire Nov 22, 2016
a4f6430
decoder: asm compilation is back
dignifiedquire Nov 22, 2016
09bd785
test: garbage passing
dignifiedquire Nov 22, 2016
0a18558
chore: update node-cbor
dignifiedquire Nov 22, 2016
e1bcf76
test and cleanup utils
dignifiedquire Nov 22, 2016
0c9a4ba
test and cleanup tagged
dignifiedquire Nov 22, 2016
6ea495f
only 5 tests faiing
dignifiedquire Nov 24, 2016
35a00b2
update benchmark code
dignifiedquire Nov 24, 2016
c2efcfd
tests passing
dignifiedquire Nov 24, 2016
93a8a04
decoder:experimental streaming support
dignifiedquire Nov 30, 2016
614b6ab
happy linter
dignifiedquire Nov 30, 2016
857f9a9
feat(decoder): implement diagnose decoder
dignifiedquire Dec 9, 2016
936dfc8
feat: rename to borc
dignifiedquire Dec 11, 2016
9f9fa2e
docs(readme): improve documentation
dignifiedquire Dec 11, 2016
8164bc2
feat: add docs setup
dignifiedquire Dec 11, 2016
b9ee11b
chore: update contributors
dignifiedquire Dec 11, 2016
c634158
chore: release version v2.0.0
dignifiedquire Dec 11, 2016
c865022
docs(readme): update badges
dignifiedquire Dec 11, 2016
f0656ff
docs(readme): fix typos
dignifiedquire Dec 11, 2016
b44cdfe
fix(decoder): handle large input sizes
dignifiedquire Dec 14, 2016
321a8ca
chore: update contributors
dignifiedquire Dec 14, 2016
7c5f752
chore: release version v2.0.1
dignifiedquire Dec 14, 2016
4ed9a69
fix(decoder): correct ByteBuffer and ByteString handling
dignifiedquire Jan 29, 2017
3793308
chore: update contributors
dignifiedquire Jan 29, 2017
0704dbc
chore: release version v2.0.2
dignifiedquire Jan 29, 2017
be834b9
docs(readme): add customization examples
dignifiedquire Jan 31, 2017
dceb91f
docs(readme): fix encoding example
dignifiedquire Jan 31, 2017
b92c4e3
chore: npm@5
dignifiedquire May 28, 2017
7f34f6a
fix(encoder): cast uint8arrays to a buffer
dignifiedquire May 28, 2017
8c549bc
Merge pull request #15 from dignifiedquire/fix/uint-8
dignifiedquire May 28, 2017
c85675a
add dev dependency for perf tests
rynop Jun 14, 2017
b9eafd8
Merge pull request #18 from rynop/patch-1
dignifiedquire Jun 14, 2017
562f14b
fix(decoder): handle larger arrays
dignifiedquire Jul 28, 2017
7c5707c
fix(decoder): handle 32bit byte strings and utf8 strings
dignifiedquire Oct 26, 2017
5fae788
chore: cleanup dependencies
dignifiedquire Oct 26, 2017
a042927
Merge pull request #24 from dignifiedquire/fix-large
dignifiedquire Oct 26, 2017
8eb9b1f
fix(encoder): correct return value on `.write`
dignifiedquire Mar 13, 2018
54a5073
feat: upgrade dependencies
dignifiedquire Mar 13, 2018
00cdb8a
Fix Date object encoding as unix epoch
sake Mar 22, 2018
bcf933c
Add testcase for Date encoding and decoding
sake Mar 23, 2018
4605930
Fix trailing comma lint error in test data
sake Mar 23, 2018
8e41f4c
Merge pull request #28 from dignifiedquire/fix/nested-array
dignifiedquire May 2, 2018
9611715
docs(readme): fix typo
danfinlay May 2, 2018
5486aa3
fix: Date object encoding as unix epoc
dignifiedquire May 2, 2018
b642979
chore: update contributors
dignifiedquire May 2, 2018
24079c5
chore: release version v2.0.3
dignifiedquire May 2, 2018
e609298
perf: avoid object allocation when creating strings from the underlyi…
rklaehn Oct 18, 2018
65664e0
chore: update dependencies
dignifiedquire Oct 18, 2018
1923f91
fix typo
dignifiedquire Oct 18, 2018
ecada16
chore: update dependencies and fix ci
dignifiedquire Oct 18, 2018
54cf950
chore: update contributors
dignifiedquire Oct 18, 2018
91149e2
chore: release version v2.0.4
dignifiedquire Oct 18, 2018
18a4974
feat: remove url dependency in the browser
hugomrdias Dec 24, 2018
ddfa804
chore: update yarn.lock
dignifiedquire Jan 3, 2019
26f51f4
chore: update contributors
dignifiedquire Jan 3, 2019
b14a317
chore: release version v2.1.0
dignifiedquire Jan 3, 2019
af8e865
chore: update bignumber.js dependency
Jul 10, 2019
2fd89a8
chore: update bignumber.js dependency (#44)
dignifiedquire Jul 10, 2019
6190338
fix: import nested bignumber.js
kimpers Jul 10, 2019
2e8f8ec
chore: update yarn.lock
dignifiedquire Jul 10, 2019
c8923c0
chore: update contributors
dignifiedquire Jul 10, 2019
b6bae8b
chore: release version v2.1.1
dignifiedquire Jul 10, 2019
ae2214e
fix: remove node globals
hugomrdias Mar 25, 2020
07353f9
chore: update lock
hugomrdias Mar 25, 2020
3968a98
fix: cleanup
hugomrdias Mar 25, 2020
27a789f
fix: remove badge
hugomrdias Mar 25, 2020
393cc70
fix: fix dep check
hugomrdias Mar 25, 2020
18e5342
fix: feedback
hugomrdias Mar 25, 2020
b3cf721
fix: remove node globals
dignifiedquire Mar 25, 2020
2b7ac48
chore: update yarn.lock
dignifiedquire Mar 26, 2020
1182812
chore: update contributors
dignifiedquire Mar 26, 2020
f8b6b76
chore: release version v2.1.2
dignifiedquire Mar 26, 2020
c31a142
chore: update deps (#53)
achingbrain Apr 27, 2021
29fd8d0
chore: update contributors
achingbrain Apr 27, 2021
1bd2319
chore: release version v3.0.0
achingbrain Apr 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

16 changes: 6 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
node_modules/
coverage/
.DS_Store
TAGS
.nyc_output/
*.js.map
jsconfig.json
typings/
typings.json
.vscode/
node_modules
*.log
test/setup/tmp-disposable-nodes-addrs.json
dist
coverage
docs
18 changes: 0 additions & 18 deletions .jsdoc.conf

This file was deleted.

61 changes: 45 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,49 @@
language: node_js
sudo: false
cache: false
dist: bionic

branches:
only:
- master
- /^release\/.*$/

node_js:
- "4"
- "6"
- "7"
install:
- npm install
script:
- npm run coverage
after_success:
- npm run coveralls
cache:
directories:
- node_modules
- 'lts/*'
- 'node'

stages:
- check

os:
- linux
- osx
- windows

env:
global:
- secure: bUEh3g16VvB9TuB/p3/KG3jAYMuNjTaPptRIxmaf+bzft3bjHNbRdwd0LwEn4kuAngb/oZEpPXjSiLs+MGgRR6vF22NwFxzX6huYKz4FWC18xngOpO93Cz5W8SdixTXiDIXnWTKSQh6qOH8xhp4sN9GSE2T2+J41N7Z3Tz+ao9Q=
# This stops Windows builds from hanging
# https://travis-ci.community/t/timeout-after-build-finished-and-succeeded/1336
- YARN_GPG=no

script: npx aegir test -t node --bail

jobs:
include:
- stage: check
script:
- npx aegir dep-check
- npm run lint

- stage: test
name: chrome
addons:
chrome: stable
script: npx aegir test -t browser -t webworker

- stage: test
name: firefox
addons:
firefox: latest
script: npx aegir test -t browser -t webworker -- --browser firefox

notifications:
secure: Usec5IhXEnqmMerBGqtH9D81EJNP72QQs1m6qHqLlFA1loi8Jj6st7WrBHOsF5InHRov2lZW8L0i4xqNRfi+Jyrch3NL+56WKaVDUVWlKyUra6NvSS0/sXnaMrQX4vqkuwNu4WwT44usiyjQp+crRarqpFk7MgLQOTneLOmFQog=
email: false
21 changes: 0 additions & 21 deletions .waiting.html

This file was deleted.

98 changes: 98 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# [3.0.0](https://github.com/dignifiedquire/borc/compare/v2.1.2...v3.0.0) (2021-04-27)



<a name="2.1.2"></a>
## [2.1.2](https://github.com/dignifiedquire/borc/compare/v2.1.1...v2.1.2) (2020-03-26)


### Bug Fixes

* cleanup ([3968a98](https://github.com/dignifiedquire/borc/commit/3968a98))
* feedback ([18e5342](https://github.com/dignifiedquire/borc/commit/18e5342))
* fix dep check ([393cc70](https://github.com/dignifiedquire/borc/commit/393cc70))
* remove badge ([27a789f](https://github.com/dignifiedquire/borc/commit/27a789f))
* remove node globals ([ae2214e](https://github.com/dignifiedquire/borc/commit/ae2214e))



<a name="2.1.1"></a>
## [2.1.1](https://github.com/dignifiedquire/borc/compare/v2.1.0...v2.1.1) (2019-07-10)


### Bug Fixes

* import nested bignumber.js ([6190338](https://github.com/dignifiedquire/borc/commit/6190338)), closes [#41](https://github.com/dignifiedquire/borc/issues/41)



<a name="2.1.0"></a>
# [2.1.0](https://github.com/dignifiedquire/borc/compare/v2.0.4...v2.1.0) (2019-01-03)


### Features

* remove url dependency in the browser ([18a4974](https://github.com/dignifiedquire/borc/commit/18a4974))



<a name="2.0.4"></a>
## [2.0.4](https://github.com/dignifiedquire/borc/compare/v2.0.3...v2.0.4) (2018-10-18)


### Performance Improvements

* avoid object allocation when creating strings from the underlying buffer ([e609298](https://github.com/dignifiedquire/borc/commit/e609298))



<a name="2.0.3"></a>
## [2.0.3](https://github.com/dignifiedquire/borc/compare/v2.0.2...v2.0.3) (2018-05-02)


### Bug Fixes

* **decoder:** handle 32bit byte strings and utf8 strings ([7c5707c](https://github.com/dignifiedquire/borc/commit/7c5707c)), closes [#19](https://github.com/dignifiedquire/borc/issues/19)
* **decoder:** handle larger arrays ([562f14b](https://github.com/dignifiedquire/borc/commit/562f14b)), closes [#20](https://github.com/dignifiedquire/borc/issues/20)
* **encoder:** cast uint8arrays to a buffer ([7f34f6a](https://github.com/dignifiedquire/borc/commit/7f34f6a)), closes [#13](https://github.com/dignifiedquire/borc/issues/13)
* **encoder:** correct return value on `.write` ([8eb9b1f](https://github.com/dignifiedquire/borc/commit/8eb9b1f)), closes [#27](https://github.com/dignifiedquire/borc/issues/27)


### Features

* upgrade dependencies ([54a5073](https://github.com/dignifiedquire/borc/commit/54a5073))



<a name="2.0.2"></a>
## [2.0.2](https://github.com/dignifiedquire/borc/compare/v2.0.1...v2.0.2) (2017-01-29)


### Bug Fixes

* **decoder:** correct ByteBuffer and ByteString handling ([4ed9a69](https://github.com/dignifiedquire/borc/commit/4ed9a69))



<a name="2.0.1"></a>
## [2.0.1](https://github.com/dignifiedquire/borc/compare/v2.0.0...v2.0.1) (2016-12-14)


### Bug Fixes

* **decoder:** handle large input sizes ([b44cdfe](https://github.com/dignifiedquire/borc/commit/b44cdfe)), closes [#10](https://github.com/dignifiedquire/borc/issues/10)



<a name="2.0.0"></a>
# [2.0.0](https://github.com/dignifiedquire/borc/compare/v2.0.2...v2.0.0) (2016-12-11)


### Features

* **decoder:** implement diagnose decoder ([857f9a9](https://github.com/dignifiedquire/borc/commit/857f9a9)), closes [#5](https://github.com/dignifiedquire/borc/issues/5)
* add docs setup ([8164bc2](https://github.com/dignifiedquire/borc/commit/8164bc2))
* rename to borc ([936dfc8](https://github.com/dignifiedquire/borc/commit/936dfc8))



12 changes: 0 additions & 12 deletions Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014 Joe Hildebrand
Copyright (c) 2016 Friedel Ziegelmayer

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
Loading