Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
28571af
Replace .charAt and .indexOf with array/dict lookup
JobLeonard Jun 25, 2017
7899c11
Hoist lookup dictionary lookup
JobLeonard Jun 25, 2017
aff6ced
Use IIFE for Base64String
JobLeonard Jun 26, 2017
d0b7942
Avoid intermediate string in UTF16 compression/decompression + variou…
JobLeonard Jun 26, 2017
66e7134
replace charAt() with array lookup
JobLeonard Jun 26, 2017
0a19f95
Avoid creating intermediate strings where possible
JobLeonard Jun 26, 2017
2c45ae9
Avoid intermediate array creation
JobLeonard Jun 26, 2017
ece7153
Decode Base64 URI-safe with charCodeAt instead of charAt
JobLeonard Jun 30, 2017
c884d41
Use charCodeAt in _compressToArray
JobLeonard Jun 30, 2017
eacfb3b
Use offset instead of negative indexes for lookup
JobLeonard Jul 1, 2017
7d1c286
Slightly shorten code
JobLeonard Jul 1, 2017
4e4cea1
Shortened decompress
JobLeonard Jul 1, 2017
9f645c9
Bit hacks to reduce _decompress size
JobLeonard Jul 2, 2017
35f7243
Get rid of reverseDict
JobLeonard Jul 2, 2017
4f9defe
Hoist getCharFromInt functions
JobLeonard Jul 2, 2017
a74876b
Add some documentation
JobLeonard Jul 2, 2017
06b4b88
Last bit of code-golfing, I swear
JobLeonard Jul 2, 2017
b2e43a6
Autoformatter
JobLeonard Jul 2, 2017
d486dc4
Bit more code golfing
JobLeonard Jul 2, 2017
06a46f6
Got rid of dictionaryToCreate
JobLeonard Jul 4, 2017
e796777
Math.log2 is ES6, so different method used.
JobLeonard Jul 5, 2017
3e3e5d8
Use object literal for new_node
JobLeonard Jul 5, 2017
965da38
Removed redundant if statement
JobLeonard Jul 5, 2017
f1d2422
Initialise first node + comments
JobLeonard Jul 6, 2017
c3f7bc6
`resetValue` -> `resetBits`
JobLeonard Jul 6, 2017
628399e
Turns out `new_node` is redundant
JobLeonard Jul 6, 2017
2b03bc3
Avoid doing same dictionary lookup twice
JobLeonard Jul 11, 2017
457adbf
Faster implementation with unsafe worst-case behaviour
JobLeonard Jul 18, 2017
1ffb4e3
Code-golfing: 47 chars shaved off minified file
JobLeonard Dec 1, 2017
1894f7c
Fixes + perf improvements + better minification
JobLeonard Jan 17, 2018
cd1621c
Properly private functions, better minification
JobLeonard Jan 17, 2018
108287c
Update lz-string-unsafe with recent optimisations
JobLeonard Jan 17, 2018
a87eb89
Added StringStream class
JobLeonard Jul 4, 2018
e0bafe5
Made a Uint8Array-to-UTF16 version (hack, WIP)
JobLeonard Jul 4, 2018
2911de8
Cloned test for lz-string-unsafe.js
JobLeonard Jul 5, 2018
ff26e40
getChar16Bits = fromCharCode
JobLeonard Jul 5, 2018
5722681
Add StringStream to lz-string-usafe
JobLeonard Jul 5, 2018
3ac31a6
Rewrite for smaller size and better speed.
gloryknight Jul 10, 2018
98faded
Merge pull request #1 from gloryknight/patch-2
JobLeonard Jul 11, 2018
ba89880
Add stringStream changes to unsafe version
JobLeonard Jul 11, 2018
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
Loading