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

Add performance tests #1

Open
twolfson opened this issue Nov 12, 2013 · 3 comments
Open

Add performance tests #1

twolfson opened this issue Nov 12, 2013 · 3 comments

Comments

@twolfson
Copy link
Owner

During the development of gifsockets, performance was a major priority. We should embrace performance driven development as a core principle for this repository.

Things to perf:

  • Verify using ByteCapacitor over pushing for every byte is more efficient
    • Test via both .read() and .on('data')
  • Switch to ndarray over typed arrays for NeuQuant
@twolfson
Copy link
Owner Author

  • Reuse of indexedPixels instead of reallocating them for every analyzePixels

@twolfson
Copy link
Owner Author

@twolfson
Copy link
Owner Author

In 0.4.1, we discovered that frame based buffers are required since byte by byte buffers will fall over. This takes care of the first bullet point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant