diff options
| author | yum <yum.food.vr@gmail.com> | 2022-12-22 14:49:44 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2022-12-22 14:54:03 -0800 |
| commit | 6f2c1dace46a68620bc61a732a2f43252bd5d3ba (patch) | |
| tree | 406674c850b814dfebe754089abdefbf61d49964 /README.md | |
| parent | 9c6b3c43ddecca315cdba11ebd14f6926527fa8b (diff) | |
Document encoding optimization
By sending encoded words rather than letters, we could speed up
English paging rate by 2.5x over an optimized implementation
Word-encoded implementation: 16 bits per word
(capped at 64k possible words).
Optimized char-based imlementation:
(5.7 chars per word) * (7 bits per char) == 39.9 bits per word
2.5x slower than word encoding.
Today's char-based implementation:
(5.7 chars per word) * (16 bits per char) == 91.2 bits per word
5.7x slower than word encoding.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -8,6 +8,7 @@ custom shader display the text in game.  Contents: + 0. [Usage and setup](#usage-and-setup) 1. [Features](#features) 2. [Motivation](#motivation) @@ -179,6 +180,15 @@ Contributions welcome. Send a pull request to this repository. This should significantly cut down on idle resource consumption. Perhaps there's even a more efficient way to detect the odds that anything is being said, which we could use to gate transcription.~~ DONE + 5. There are ~64k words in the English language. We could encode each word + using a 16-bit int. On the other hand, suppose you represented each + character using 7 bits per character and transmitted words + character-by-character. The average word length is 4.7 characters, and we + send ~1 space character per word. Thus the expected bits per word in an + optimized version of today's encoding scheme is (5.7 * 7) == 39.9 bits. + The other encoding scheme is thus ~2.5 times more efficient. This could + be used to significantly speed up sync times. (Thanks, Noppers for the + idea!) 5. Bugfixes 1. ~~The whisper STT says "Thank you." when there's no audio?~~ DONE 6. Shine |
